only test for client configuration during pure-js tests

This commit is contained in:
brianc 2011-03-05 11:32:10 -06:00
parent dc964a66c1
commit 1226ee2012

View File

@ -1,4 +1,4 @@
require(__dirname + '/test-helper'); var helper = require(__dirname + '/test-helper');
var pg = require("index"); var pg = require("index");
test('default values', function() { test('default values', function() {
@ -21,8 +21,8 @@ test('default values', function() {
}) })
}) })
if(!helper.args.native) {
test('modified values', function() { test('modified values', function() {
return false;
pg.defaults.user = 'boom' pg.defaults.user = 'boom'
pg.defaults.password = 'zap' pg.defaults.password = 'zap'
pg.defaults.database = 'pow' pg.defaults.database = 'pow'
@ -42,3 +42,5 @@ test('modified values', function() {
}) })
}) })
}) })
}