不要怂,就是干,撸起袖子干!

Commit d7f72a94 by Mick Hansen

caging zalgo

1 parent 72941d80
......@@ -700,7 +700,9 @@ describe(Support.getTestDialectTeaser("HasMany"), function() {
expect(tableName).to.equal(associationName)
}
}
setTimeout(function () {
done()
}, 50)
})
})
......@@ -945,7 +947,9 @@ describe(Support.getTestDialectTeaser("HasMany"), function() {
expect(Group.associations.MyUsers.through.rawAttributes.UserId).to.exist;
expect(Group.associations.MyUsers.through.rawAttributes.GroupId).to.exist;
done();
setTimeout(function () {
done()
}, 50)
})
it("correctly identifies its counterpart when through is a model", function (done) {
......@@ -962,7 +966,9 @@ describe(Support.getTestDialectTeaser("HasMany"), function() {
expect(Group.associations.MyUsers.through.rawAttributes.UserId).to.exist;
expect(Group.associations.MyUsers.through.rawAttributes.GroupId).to.exist;
done();
setTimeout(function () {
done()
}, 50)
})
})
})
......
......@@ -38,12 +38,16 @@ if (dialect.match(/^postgres/)) {
it("should not use a combined name", function(done) {
expect(this.sequelize.daoFactoryManager.getDAO('ms_table1sms_table2s')).not.to.exist
setTimeout(function () {
done()
}, 50)
})
it("should use the specified name", function(done) {
expect(this.sequelize.daoFactoryManager.getDAO('table1_to_table2')).to.exist
setTimeout(function () {
done()
}, 50)
})
})
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!