mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
updated integration tests of defaults to test for new values
This commit is contained in:
parent
d5bd9c904a
commit
9eed57be84
@ -3,9 +3,9 @@ var pg = require("index");
|
||||
|
||||
test('default values', function() {
|
||||
assert.same(pg.defaults,{
|
||||
user: '',
|
||||
database: '',
|
||||
password: '',
|
||||
user: process.env.USER,
|
||||
database: process.env.USER,
|
||||
password: null,
|
||||
port: 5432,
|
||||
rows: 0,
|
||||
poolSize: 10
|
||||
@ -13,9 +13,9 @@ test('default values', function() {
|
||||
test('are used in new clients', function() {
|
||||
var client = new pg.Client();
|
||||
assert.same(client,{
|
||||
user: '',
|
||||
database: '',
|
||||
password: '',
|
||||
user: process.env.USER,
|
||||
database: process.env.USER,
|
||||
password: null,
|
||||
port: 5432
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user