f2b87e02f1
* Remove redundant tests * Add client connectionString test Add test to ensure { connectionString } is respected as an argument to the client constructor * Add test for connection string property Also fixed some legacy require statements.
16 lines
285 B
JavaScript
16 lines
285 B
JavaScript
var helper = require("./../test-helper")
|
|
var pg = helper.pg
|
|
var native = helper.args.native
|
|
|
|
var pool = new pg.Pool()
|
|
|
|
pool.connect(assert.calls(function(err, client, done) {
|
|
if (native) {
|
|
assert(client.native)
|
|
} else {
|
|
assert(!client.native)
|
|
}
|
|
done()
|
|
pool.end()
|
|
}))
|