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).
11 lines
269 B
JavaScript
11 lines
269 B
JavaScript
'use strict'
|
|
var helper = require('./test-helper')
|
|
|
|
test('passes connection notification', function () {
|
|
var client = helper.client()
|
|
assert.emits(client, 'notice', function (msg) {
|
|
assert.equal(msg, 'HAY!!')
|
|
})
|
|
client.connection.emit('notice', 'HAY!!')
|
|
})
|