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

Commit 91914618 by Jan Scheurer

Fix unit test

1 parent 9e804c27
Showing with 1 additions and 3 deletions
...@@ -985,8 +985,7 @@ describe(Support.getTestDialectTeaser("HasMany"), function() { ...@@ -985,8 +985,7 @@ describe(Support.getTestDialectTeaser("HasMany"), function() {
User.hasMany(Task) User.hasMany(Task)
Task.hasMany(User) Task.hasMany(User)
User.sync({ force: true }).success(function () { this.sequelize.sync({ force: true }).success(function () {
Task.sync({ force: true }).success(function () {
User.create({ username: 'foo' }).success(function (user) { User.create({ username: 'foo' }).success(function (user) {
Task.create({ title: 'task' }).success(function (task) { Task.create({ title: 'task' }).success(function (task) {
task.setUsers([ user ]).success(function () { task.setUsers([ user ]).success(function () {
...@@ -1004,7 +1003,6 @@ describe(Support.getTestDialectTeaser("HasMany"), function() { ...@@ -1004,7 +1003,6 @@ describe(Support.getTestDialectTeaser("HasMany"), function() {
}) })
}) })
}) })
})
it("joins an association with custom primary keys", function(done) { it("joins an association with custom primary keys", function(done) {
var Group = this.sequelize.define('group', { var Group = this.sequelize.define('group', {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!