mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Replaces __dirname concatentation in pg test scripts so that editors like VS Code can automatically generate typings and support code navigation (F12).
22 lines
418 B
JavaScript
22 lines
418 B
JavaScript
'use strict'
|
|
var pg = require('../../../lib')
|
|
var config = require('./test-helper').config
|
|
test('can connect with ssl', function () {
|
|
return false
|
|
config.ssl = {
|
|
rejectUnauthorized: false,
|
|
}
|
|
pg.connect(
|
|
config,
|
|
assert.success(function (client) {
|
|
return false
|
|
client.query(
|
|
'SELECT NOW()',
|
|
assert.success(function () {
|
|
pg.end()
|
|
})
|
|
)
|
|
})
|
|
)
|
|
})
|