From b2a2d029ab744cf8a5cf072480cf3b01a9509420 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Tue, 22 Nov 2011 05:00:16 +0100 Subject: [PATCH] fixed test, column should be accessed with name --- test/integration/client/type-coercion-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/client/type-coercion-tests.js b/test/integration/client/type-coercion-tests.js index fab12c6d..2c23f130 100644 --- a/test/integration/client/type-coercion-tests.js +++ b/test/integration/client/type-coercion-tests.js @@ -23,7 +23,7 @@ var testForTypeCoercion = function(type){ }); assert.emits(query, 'row', function(row) { - assert.strictEqual(row.col, val, "expected " + type.name + " of " + val + " but got " + row[0]); + assert.strictEqual(row.col, val, "expected " + type.name + " of " + val + " but got " + row.col); }, "row should have been called for " + type.name + " of " + val); client.query('delete from test_type');