mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
added test case for NODE_PG_FORCE_NATIVE
This commit is contained in:
parent
e9cb2965e9
commit
37f4d504d2
10
test/integration/client/force-native-with-envvar.js
Normal file
10
test/integration/client/force-native-with-envvar.js
Normal file
@ -0,0 +1,10 @@
|
||||
// if (!assert) var assert = require('assert');
|
||||
|
||||
process.env.NODE_PG_FORCE_NATIVE = true;
|
||||
|
||||
var pg = require('../../../lib/');
|
||||
var query_native = require('../../../lib/native/query.js');
|
||||
var query_js = require('../../../lib/query.js');
|
||||
|
||||
assert.deepEqual(pg.Client.Query, query_native);
|
||||
assert.notDeepEqual(pg.Client.Query, query_js);
|
||||
Loading…
x
Reference in New Issue
Block a user