summaryrefslogtreecommitdiff
path: root/jstests/core/update_addToSet.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/update_addToSet.js')
-rw-r--r--jstests/core/update_addToSet.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/core/update_addToSet.js b/jstests/core/update_addToSet.js
index da930555267..c12f029f6ae 100644
--- a/jstests/core/update_addToSet.js
+++ b/jstests/core/update_addToSet.js
@@ -2,7 +2,7 @@
t = db.update_addToSet1;
t.drop();
-o = { _id : 1 , a : [ 2 , 1 ] }
+o = { _id : 1 , a : [ 2 , 1 ] };
t.insert( o );
assert.eq( o , t.findOne() , "A1" );
@@ -16,12 +16,12 @@ assert.eq( o , t.findOne() , "A3" );
// SERVER-628
t.update( {} , { $addToSet : { a : { $each : [ 3 , 5 , 6 ] } } } );
-o.a.push( 5 )
-o.a.push( 6 )
-assert.eq( o , t.findOne() , "B1" )
+o.a.push( 5 );
+o.a.push( 6 );
+assert.eq( o , t.findOne() , "B1" );
-t.drop()
-o = { _id : 1 , a : [ 3 , 5 , 6 ] }
+t.drop();
+o = { _id : 1 , a : [ 3 , 5 , 6 ] };
t.insert( o );
t.update( {} , { $addToSet : { a : { $each : [ 3 , 5 , 6 ] } } } );
assert.eq( o , t.findOne() , "B2" );