Browse files

had forgotten .all test, had i had it, the bug in previous commit wou…

…ldn't have happened
  • Loading branch information...
1 parent dbd5e18 commit f2578e9144cfa8c2969eea1097f3b35e87161241 @pkrumins committed Sep 15, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/json.js
View
9 test/json.js
@@ -43,6 +43,15 @@ exports['json'] = function (assert) {
function (err, key, val) {
assert.equal(key, 'substack');
assert.equal(val.age, 22);
+ },
+ function () {
+ db.all(function (aErr, keys, vals) {
+ assert.ok(!aErr);
+ assert.equal(keys.length, 2);
+ assert.equal(vals.length, 2);
+ assert.ok('pkrumins' == keys[0] || 'pkrumins' == keys[1]);
+ assert.ok('substack' == keys[0] || 'substack' == keys[1]);
+ });
}
);
})

0 comments on commit f2578e9

Please sign in to comment.