@@ -31,7 +31,7 @@ test('client settings', function() {
3131test ( 'initializing from a config string' , function ( ) {
3232
3333 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" )
3535 assert . equal ( client . user , 'brian' )
3636 assert . equal ( client . password , "pass" )
3737 assert . equal ( client . host , "host1" )
@@ -40,7 +40,7 @@ test('initializing from a config string', function() {
4040 } )
4141
4242 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" )
4444 assert . equal ( client . user , 'brian' )
4545 assert . equal ( client . password , "pass word" )
4646 assert . equal ( client . host , "host1" )
@@ -49,7 +49,7 @@ test('initializing from a config string', function() {
4949 } )
5050
5151 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" )
5353 assert . equal ( client . user , process . env [ 'PGUSER' ] || process . env . USER )
5454 assert . equal ( client . password , process . env [ 'PGPASSWORD' ] || null )
5555 assert . equal ( client . host , "host1" )
0 commit comments