diff options
author | adam <anton@adamansky.com> | 2012-11-27 16:27:41 +0700 |
---|---|---|
committer | adam <anton@adamansky.com> | 2012-11-27 16:27:41 +0700 |
commit | 8ece0be7edb910700ef0209ccc6436ed5060d59a (patch) | |
tree | e7ce52925dbe0c08f8393bfd98f35f6c9528881d /node | |
parent | 7b278b26fa76a2e713256a82034224756e955464 (diff) | |
download | ejdb-8ece0be7edb910700ef0209ccc6436ed5060d59a.tar.gz ejdb-8ece0be7edb910700ef0209ccc6436ed5060d59a.tar.bz2 ejdb-8ece0be7edb910700ef0209ccc6436ed5060d59a.zip |
minor bugfix
Diffstat (limited to 'node')
-rw-r--r-- | node/tests/t2.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/node/tests/t2.js b/node/tests/t2.js index 8928317..caf4b8b 100644 --- a/node/tests/t2.js +++ b/node/tests/t2.js @@ -261,7 +261,12 @@ module.exports.testUpdate1 = function(test) { test.ok(obj); test.equal(obj["name"], "Grenny"); test.equal(obj["extra1"], 1); - test.done(); + var q = {"_id" : {"$in" : ids}, "$set" : {"stime" : +new Date}}; + jb.update("parrots", q, function(err, count) { + test.ifError(err); + test.equal(count, 1); + test.done(); + }); }); }); }); |