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

fix test for defaultValue allow functions #975

1 parent eeaa7cec
Showing with 2 additions and 2 deletions
/* jshint camelcase: false */
/* jshint expr: true */
var chai = require('chai')
, Sequelize = require('../index')
, expect = chai.expect
......@@ -172,13 +173,12 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
UserTable.create().success(function(user2) {
expect(user.aNumber).to.equal(5)
expect(user2.aNumber).to.equal(5)
expect(defaultFunction).to.have.been.called.twice
expect(defaultFunction.callCount).to.equal(2)
done()
})
})
})
})
})
it('should allow me to override updatedAt, createdAt, and deletedAt fields', function(done) {
var UserTable = this.sequelize.define('UserCol', {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!