summaryrefslogtreecommitdiff
path: root/jstests/core/inc3.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/inc3.js')
-rw-r--r--jstests/core/inc3.js18
1 files changed, 8 insertions, 10 deletions
diff --git a/jstests/core/inc3.js b/jstests/core/inc3.js
index 6f10ad2b27b..b69a77c64cd 100644
--- a/jstests/core/inc3.js
+++ b/jstests/core/inc3.js
@@ -2,15 +2,13 @@
t = db.inc3;
t.drop();
-t.save( { _id : 1 , z : 1 , a : 1 } );
-t.update( {} , { $inc : { z : 1 , a : 1 } } );
-t.update( {} , { $inc : { a : 1 , z : 1 } } );
-assert.eq( { _id : 1 , z : 3 , a : 3 } , t.findOne() , "A" );
-
+t.save({_id: 1, z: 1, a: 1});
+t.update({}, {$inc: {z: 1, a: 1}});
+t.update({}, {$inc: {a: 1, z: 1}});
+assert.eq({_id: 1, z: 3, a: 3}, t.findOne(), "A");
t.drop();
-t.save( { _id : 1 , a : 1 , z : 1 } );
-t.update( {} , { $inc : { z : 1 , a : 1 } } );
-t.update( {} , { $inc : { a : 1 , z : 1 } } );
-assert.eq( { _id : 1 , a : 3 , z : 3 } , t.findOne() , "B" );
-
+t.save({_id: 1, a: 1, z: 1});
+t.update({}, {$inc: {z: 1, a: 1}});
+t.update({}, {$inc: {a: 1, z: 1}});
+assert.eq({_id: 1, a: 3, z: 3}, t.findOne(), "B");