node-postgres/test/integration/client/error-handling-tests.js
2010-10-26 08:51:12 -05:00

11 lines
315 B
JavaScript

var helper = require(__dirname + '/test-helper');
test('error handling', function(){
var client = helper.client();
client.query("select omfg from yodas_soda where pixistix = 'zoiks!!!'");
assert.raises(client, 'error', function(error) {
assert.equal(error.severity, "ERROR");
client.end();
});
});