Skip to content

Commit

Permalink
Added upsert with no callback funcion to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
christkv committed Dec 16, 2010
1 parent b751693 commit e918dfb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration/integration_tests.js
Expand Up @@ -347,6 +347,8 @@ var all_tests = {
collection.insert({x:1}, function(err, ids) {
collection.update({x:1}, {"$set":{x:2}}, {'safe':true}, function(err, document) {
});

collection.update({x:1}, {"$set":{x:2}}, {'safe':true});

collection.update({y:1}, {"$set":{y:2}}, {'safe':true}, function(err, document) {
test.ok(err instanceof Error);
Expand Down

0 comments on commit e918dfb

Please sign in to comment.