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

Commit f3efb307 by 변상필

Remove localhost

1 parent 6698a262
Showing with 8 additions and 5 deletions
...@@ -54,11 +54,14 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () { ...@@ -54,11 +54,14 @@ describe(Support.getTestDialectTeaser("Sequelize"), function () {
} }
if (dialect === 'postgres') { if (dialect === 'postgres') {
it('should work with connection strings (1)', function () { var getConnectionUri = _.template('<%= protocol %>://<%= username %>:<%= password %>@<%= host %><% if(port) { %>:<%= port %><% } %>/<%= database %>')
var sequelize = new Sequelize('postgres://localhost/sequelize_test') it('should work with connection strings (postgres protocol)', function () {
}) var connectionUri = getConnectionUri(_.extend(config[dialect], {protocol: 'postgres'}))
it('should work with connection strings (2)', function () { var sequelize = new Sequelize(connectionUri) // postgres://...
var sequelize = new Sequelize('postgresql://localhost/sequelize_test') })
it('should work with connection strings (postgresql protocol)', function () {
var connectionUri = getConnectionUri(_.extend(config[dialect], {protocol: 'postgresql'}))
var sequelize = new Sequelize(connectionUri) // postgresql://...
}) })
} }
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!