@@ -31,7 +31,7 @@ test('client settings', function() {
31
31
test ( 'initializing from a config string' , function ( ) {
32
32
33
33
test ( 'uses the correct values from the config string' , function ( ) {
34
- var client = new Client ( "pg ://brian:pass@host1:333/databasename" )
34
+ var client = new Client ( "postgres ://brian:pass@host1:333/databasename" )
35
35
assert . equal ( client . user , 'brian' )
36
36
assert . equal ( client . password , "pass" )
37
37
assert . equal ( client . host , "host1" )
@@ -40,7 +40,7 @@ test('initializing from a config string', function() {
40
40
} )
41
41
42
42
test ( 'uses the correct values from the config string with space in password' , function ( ) {
43
- var client = new Client ( "pg ://brian:pass word@host1:333/databasename" )
43
+ var client = new Client ( "postgres ://brian:pass word@host1:333/databasename" )
44
44
assert . equal ( client . user , 'brian' )
45
45
assert . equal ( client . password , "pass word" )
46
46
assert . equal ( client . host , "host1" )
@@ -49,7 +49,7 @@ test('initializing from a config string', function() {
49
49
} )
50
50
51
51
test ( 'when not including all values the defaults are used' , function ( ) {
52
- var client = new Client ( "pg ://host1" )
52
+ var client = new Client ( "postgres ://host1" )
53
53
assert . equal ( client . user , process . env [ 'PGUSER' ] || process . env . USER )
54
54
assert . equal ( client . password , process . env [ 'PGPASSWORD' ] || null )
55
55
assert . equal ( client . host , "host1" )
0 commit comments