Skip to content

Commit

Permalink
adding possibility to pass with callback only
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuskubilius committed Jan 14, 2013
1 parent 55a367e commit ff4c1ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/ancestorTree.test.js
Expand Up @@ -160,6 +160,12 @@ describe('ancestorTree', function () {
assert.strictEqual(children[2]._id.toString(), asc._id.toString()); assert.strictEqual(children[2]._id.toString(), asc._id.toString());
cb(err); cb(err);
}); });
},
function(cb) {
doc.findChildren(function(err, children){
assertStrictEqual(err, null, 'should work with one argument only.');
cb(err);
});
} }


], ],
Expand Down

0 comments on commit ff4c1ae

Please sign in to comment.