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

Commit bc20526d by ksmithut

added test for passing configuration options along with db string

1 parent 96d54225
Showing with 8 additions and 0 deletions
...@@ -84,6 +84,14 @@ describe(Support.getTestDialectTeaser('Configuration'), function() { ...@@ -84,6 +84,14 @@ describe(Support.getTestDialectTeaser('Configuration'), function() {
done(); done();
}); });
it('should work with no authentication options and passing additional options', function() {
var sequelize = new Sequelize('mysql://example.com:9821/dbname', {});
var config = sequelize.config;
expect(config.username).to.not.be.ok;
expect(config.password).to.be.null;
});
it('should use the default port when no other is specified', function() { it('should use the default port when no other is specified', function() {
var sequelize = new Sequelize('dbname', 'root', 'pass', { var sequelize = new Sequelize('dbname', 'root', 'pass', {
dialect: dialect dialect: dialect
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!