From d06f407c6c33d905583e062b8e12bc3a53aa7a47 Mon Sep 17 00:00:00 2001 From: brianc Date: Sun, 20 Feb 2011 19:28:48 -0600 Subject: [PATCH] failing test for row results --- test/libpq/binding-spike.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/libpq/binding-spike.js b/test/libpq/binding-spike.js index ad08bf7a..4feb8665 100644 --- a/test/libpq/binding-spike.js +++ b/test/libpq/binding-spike.js @@ -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(); + }); + }); }); })