only test for client configuration during pure-js tests
This commit is contained in:
parent
dc964a66c1
commit
1226ee2012
@ -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,24 +21,26 @@ test('default values', function() {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
test('modified values', function() {
|
if(!helper.args.native) {
|
||||||
return false;
|
test('modified values', function() {
|
||||||
pg.defaults.user = 'boom'
|
pg.defaults.user = 'boom'
|
||||||
pg.defaults.password = 'zap'
|
pg.defaults.password = 'zap'
|
||||||
pg.defaults.database = 'pow'
|
pg.defaults.database = 'pow'
|
||||||
pg.defaults.port = 1234
|
pg.defaults.port = 1234
|
||||||
pg.defaults.host = 'blam'
|
pg.defaults.host = 'blam'
|
||||||
pg.defaults.rows = 10
|
pg.defaults.rows = 10
|
||||||
pg.defaults.poolSize = 0
|
pg.defaults.poolSize = 0
|
||||||
|
|
||||||
test('are passed into created clients', function() {
|
test('are passed into created clients', function() {
|
||||||
var client = new Client();
|
var client = new Client();
|
||||||
assert.same(client,{
|
assert.same(client,{
|
||||||
user: 'boom',
|
user: 'boom',
|
||||||
password: 'zap',
|
password: 'zap',
|
||||||
database: 'pow',
|
database: 'pow',
|
||||||
port: 1234,
|
port: 1234,
|
||||||
host: 'blam'
|
host: 'blam'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user