Skip to content

Commit

Permalink
add failing test for brianc#183
Browse files Browse the repository at this point in the history
  • Loading branch information
brianc committed Sep 10, 2012
1 parent ba733f5 commit 6640271
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/integration/client/simple-query-tests.js
Expand Up @@ -9,15 +9,16 @@ test("simple query interface", function() {
client.on('drain', client.end.bind(client));

var rows = [];
query.on('row', function(row) {
rows.push(row['name'])
query.on('row', function(row, result) {
assert.ok(result);
rows.push(row['name']);
});
query.once('row', function(row) {
test('Can iterate through columns', function () {
var columnCount = 0;
for (column in row) {
columnCount++;
};
}
if ('length' in row) {
assert.lengthIs(row, columnCount, 'Iterating through the columns gives a different length from calling .length.');
}
Expand Down

0 comments on commit 6640271

Please sign in to comment.