Permalink
Browse files

adding possibility to pass with callback only

  • Loading branch information...
1 parent 55a367e commit ff4c1ae842514710d805fb4044941a4790346c7e @mariuskubilius committed Jan 14, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/ancestorTree.test.js
View
6 test/ancestorTree.test.js
@@ -160,6 +160,12 @@ describe('ancestorTree', function () {
assert.strictEqual(children[2]._id.toString(), asc._id.toString());
cb(err);
});
+ },
+ function(cb) {
+ doc.findChildren(function(err, children){
+ assertStrictEqual(err, null, 'should work with one argument only.');
+ cb(err);
+ });
}
],

0 comments on commit ff4c1ae

Please sign in to comment.