summaryrefslogtreecommitdiff
path: root/node/tests/t2.js
diff options
context:
space:
mode:
Diffstat (limited to 'node/tests/t2.js')
-rw-r--r--node/tests/t2.js7
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();
+ });
});
});
});