fixed test, column should be accessed with name

This commit is contained in:
Alexander Sulfrian 2011-11-22 05:00:16 +01:00
parent 6b032c466b
commit b2a2d029ab

View File

@ -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');