mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
add another test for weird connection strings
This commit is contained in:
parent
77daa06df9
commit
6f73583112
@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user