node-postgres/packages/pg/test/unit/client/notification-tests.js
Brian C 1b5f3e33c4
Monorepo (#2014)
* First crack at monorepo

* Update test command

* Update path to script

* Remove node 6 from CI
2019-12-17 08:32:08 -08:00

11 lines
280 B
JavaScript

'use strict'
var helper = require(__dirname + '/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!!')
})