node-postgres/test/native/missing-native.js
Pavel Lang ad2ffce986 pg.native returns null if pg-native is missing (#950)
`require('pg').native` will be `null` and report error once to `stdout` when `pg-native` is missing.
2016-06-07 16:02:07 -05:00

7 lines
188 B
JavaScript

//this test assumes it has been run from the Makefile
//and that node_modules/pg-native has been deleted
var assert = require('assert');
assert.equal(require('../../lib').native, null);