diff options
Diffstat (limited to 'jstests/core/insert2.js')
-rw-r--r-- | jstests/core/insert2.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/core/insert2.js b/jstests/core/insert2.js index 4d5de35bb36..f01fd153d0c 100644 --- a/jstests/core/insert2.js +++ b/jstests/core/insert2.js @@ -7,8 +7,8 @@ conn.forceWriteMode(db.getMongo().writeMode()); t = conn.getDB(db.getName()).insert2; t.drop(); -assert.isnull( t.findOne() , "A" ); -assert.writeError(t.insert( { z : 1 , $inc : { x : 1 } } , 0, true )); -assert.isnull( t.findOne() , "B" ); +assert.isnull(t.findOne(), "A"); +assert.writeError(t.insert({z: 1, $inc: {x: 1}}, 0, true)); +assert.isnull(t.findOne(), "B"); // Collection should not exist -assert.commandFailed( t.stats() ); +assert.commandFailed(t.stats()); |