add another test for weird connection strings

This commit is contained in:
bmc 2013-01-29 20:06:50 -06:00
parent 77daa06df9
commit 6f73583112

View File

@ -149,4 +149,12 @@ test('libpq connection string building', function() {
assert.equal(subject.password, sourceConfig.password);
});
test('password contains weird characters', function() {
var strang = 'pg://my first name:is&%awesome!@localhost:9000';
var subject = new ConnectionParameters(strang);
assert.equal(subject.user, 'my first name');
assert.equal(subject.password, 'is&%awesome!');
assert.equal(subject.host, 'localhost');
});
});