2010-10-26 14:51:12 +08:00
|
|
|
var helper = require(__dirname + '/test-helper');
|
|
|
|
|
|
|
|
test('error handling', function(){
|
|
|
|
var client = helper.client();
|
|
|
|
client.query("select omfg from yodas_soda where pixistix = 'zoiks!!!'");
|
2010-11-01 03:43:10 +08:00
|
|
|
assert.emits(client, 'error', function(error) {
|
2010-10-26 14:51:12 +08:00
|
|
|
assert.equal(error.severity, "ERROR");
|
|
|
|
client.end();
|
|
|
|
});
|
|
|
|
});
|