From 9eed57be841c535847ce1f7e561cbae527e6e8a0 Mon Sep 17 00:00:00 2001 From: bmc Date: Tue, 1 Mar 2011 20:28:44 +0000 Subject: [PATCH] updated integration tests of defaults to test for new values --- test/integration/client/configuration-tests.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/integration/client/configuration-tests.js b/test/integration/client/configuration-tests.js index d380f73b..4b2e243c 100644 --- a/test/integration/client/configuration-tests.js +++ b/test/integration/client/configuration-tests.js @@ -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 }) })