mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
fixed test, column should be accessed with name
This commit is contained in:
parent
6b032c466b
commit
b2a2d029ab
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user