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

Commit e55bd4d0 by Sascha Depold

added tests for global model options

1 parent 1bf57680
Showing with 13 additions and 0 deletions
var config = require("./config/config")
, Sequelize = require("../index")
describe('Sequelize', function() {
it('should pass the global options correctly', function() {
var sequelize = new Sequelize(config.database, config.username, config.password, {
logging: false,
define: { underscored:true }
})
var Model = sequelize.define('model', {name: Sequelize.STRING})
expect(Model.options.underscored).toBeTruthy()
})
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!