6530ce27fe
End statements with semicolons, to be consistent with the surrounding code. Added a new unit test to ensure environment variables are honored when parsing a connection string. Added a TODO to cleanup a test that emits messages using console.log(). Correct a query's syntax. Looks like a good thing to do even though the syntax doesn't matter in mocked out tests. Removed a test that tests for SELECT tags; AFAIK, SELECT commands don't emit a tag.
11 lines
270 B
JavaScript
11 lines
270 B
JavaScript
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!!");
|
|
})
|
|
|