failing test for row results

This commit is contained in:
brianc 2011-02-20 19:28:48 -06:00
parent 67e56fe832
commit d06f407c6c

View File

@ -17,8 +17,7 @@ test('connecting with wrong parameters', function() {
con.connect("user=asldfkj hostaddr=127.0.0.1 port=5432 dbname=asldkfj");
assert.emits(con, 'error', function(error) {
console.log(error);
})
});
});
@ -27,8 +26,11 @@ test('connects', function() {
con.connect("user=brian hostaddr=127.0.0.1 port=5432 dbname=postgres");
assert.emits(con, 'connect', function() {
con._sendQuery("SELECT NOW()");
test('ends connection', function() {
con.end();
})
assert.emits(con, 'row', function(row) {
assert.ok(false, "Need to assert on row data");
test('ends connection', function() {
con.end();
});
});
});
})