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

Commit 34b680d8 by Daniel Durante

Forgot to add a done() callback as well as improperly calling updateAttributes.

1 parent 40833872
Showing with 3 additions and 3 deletions
...@@ -743,7 +743,7 @@ describe(Helpers.getTestDialectTeaser("DAOFactory"), function() { ...@@ -743,7 +743,7 @@ describe(Helpers.getTestDialectTeaser("DAOFactory"), function() {
}) // - bulkCreate }) // - bulkCreate
describe('update', function() { describe('update', function() {
it('allows sql logging of updated statements', function() { it('allows sql logging of updated statements', function(done) {
var User = this.sequelize.define('User', { var User = this.sequelize.define('User', {
name: Sequelize.STRING, name: Sequelize.STRING,
bio: Sequelize.TEXT bio: Sequelize.TEXT
...@@ -754,8 +754,8 @@ describe(Helpers.getTestDialectTeaser("DAOFactory"), function() { ...@@ -754,8 +754,8 @@ describe(Helpers.getTestDialectTeaser("DAOFactory"), function() {
this.sequelize.sync({ force: true }).success(function() { this.sequelize.sync({ force: true }).success(function() {
User.create({ name: 'meg', bio: 'none' }).success(function(u) { User.create({ name: 'meg', bio: 'none' }).success(function(u) {
expect(u).toBeDefined() expect(u).toBeDefined()
expect(u).not.toBe(null) expect(u).not.toBeNull()
u.setAttributes({name: 'brian'}).on('sql', function(sql) { u.updateAttributes({name: 'brian'}).on('sql', function(sql) {
expect(sql).toBeDefined() expect(sql).toBeDefined()
expect(sql.toUpperCase().indexOf("UPDATE")).toBeGreaterThan(-1) expect(sql.toUpperCase().indexOf("UPDATE")).toBeGreaterThan(-1)
done() done()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!