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

Commit 45fbddcf by Sascha Depold

test for correct port and host passing

1 parent aec8f8a6
Showing with 8 additions and 0 deletions
......@@ -10,4 +10,12 @@ describe('Sequelize', function() {
var Model = sequelize.define('model', {name: Sequelize.STRING})
expect(Model.options.underscored).toBeTruthy()
})
it('should correctly set the host and the port', function() {
var options = { host: '127.0.0.1', port: 1234 }
, sequelize = new Sequelize(config.database, config.username, config.password, options)
expect(sequelize.config.host).toEqual(options.host)
expect(sequelize.config.port).toEqual(options.port)
})
})
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!