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

fix test for defaultValue allow functions #975

1 parent eeaa7cec
Showing with 2 additions and 2 deletions
/* jshint camelcase: false */ /* jshint camelcase: false */
/* jshint expr: true */
var chai = require('chai') var chai = require('chai')
, Sequelize = require('../index') , Sequelize = require('../index')
, expect = chai.expect , expect = chai.expect
...@@ -172,13 +173,12 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () { ...@@ -172,13 +173,12 @@ describe(Support.getTestDialectTeaser("DAOFactory"), function () {
UserTable.create().success(function(user2) { UserTable.create().success(function(user2) {
expect(user.aNumber).to.equal(5) expect(user.aNumber).to.equal(5)
expect(user2.aNumber).to.equal(5) expect(user2.aNumber).to.equal(5)
expect(defaultFunction).to.have.been.called.twice expect(defaultFunction.callCount).to.equal(2)
done() done()
}) })
}) })
}) })
}) })
})
it('should allow me to override updatedAt, createdAt, and deletedAt fields', function(done) { it('should allow me to override updatedAt, createdAt, and deletedAt fields', function(done) {
var UserTable = this.sequelize.define('UserCol', { 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!