node-postgres/packages/pg/test/unit/client/notification-tests.js
Sehrope Sarkuni eeb62ba40d test: Replace __dirname concatenations in require(...) with relative paths
Replaces __dirname concatentation in pg test scripts so that editors like
VS Code can automatically generate typings and support code navigation (F12).
2020-05-16 07:41:15 -04:00

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!!')
})