Merge pull request #135 from machunter/master
failing test for issue 6247131
This commit is contained in:
commit
accb94b211
@ -143,4 +143,17 @@ test('libpq connection string building', function() {
|
||||
}))
|
||||
})
|
||||
|
||||
test('password contains < and/or > characters', function () {
|
||||
var sourceConfig = {
|
||||
user:'brian',
|
||||
password: 'hello<ther>e',
|
||||
port: 5432,
|
||||
host: 'localhost',
|
||||
database: 'postgres'
|
||||
}
|
||||
var connectionString = 'pg://' + sourceConfig.user + ':' + sourceConfig.password + '@' + sourceConfig.host + ':' + sourceConfig.port + '/' + sourceConfig.database;
|
||||
var config = utils.parseConnectionString(connectionString);
|
||||
assert.same(config, sourceConfig);
|
||||
});
|
||||
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user