9 lines
250 B
JavaScript
9 lines
250 B
JavaScript
|
var helper = require(__dirname+'/test-helper');
|
||
|
var client = helper.client();
|
||
|
|
||
|
test("empty query message handling", function() {
|
||
|
client.query("");
|
||
|
assert.raises(client.connection, 'emptyQuery');
|
||
|
client.on('drain', client.end.bind(client));
|
||
|
});
|