summaryrefslogtreecommitdiff
path: root/jstests/core/updateb.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/updateb.js')
-rw-r--r--jstests/core/updateb.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/jstests/core/updateb.js b/jstests/core/updateb.js
index 59e6348a47a..f90ac62b6c3 100644
--- a/jstests/core/updateb.js
+++ b/jstests/core/updateb.js
@@ -2,10 +2,12 @@
t = db.updateb;
t.drop();
-t.update( { "x.y" : 2 } , { $inc : { a : 7 } } , true );
+t.update({"x.y": 2}, {$inc: {a: 7}}, true);
-correct = { a : 7 , x : { y : 2 } };
+correct = {
+ a: 7,
+ x: {y: 2}
+};
got = t.findOne();
delete got._id;
-assert.docEq( correct , got , "A" );
-
+assert.docEq(correct, got, "A");