summaryrefslogtreecommitdiff
path: root/jstests/core/set6.js
diff options
context:
space:
mode:
authorMike Grundy <michael.grundy@10gen.com>2016-02-04 12:29:01 -0500
committerMike Grundy <michael.grundy@10gen.com>2016-02-09 13:41:02 -0500
commit3bed8596d18275d1561e4f44f1f0bd72c1e038f1 (patch)
tree788eaed3c7a692a424f080d16a8841dc8afa3c13 /jstests/core/set6.js
parent985e2a0be95709ac064c57f0a9bb385a55937285 (diff)
downloadmongo-3bed8596d18275d1561e4f44f1f0bd72c1e038f1.tar.gz
SERVER-22341 fix jslint errors in jstests/core with eslint --fix
Conflicts: jstests/core/count_hint.js
Diffstat (limited to 'jstests/core/set6.js')
-rw-r--r--jstests/core/set6.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/jstests/core/set6.js b/jstests/core/set6.js
index d41e7aba971..87a8100d232 100644
--- a/jstests/core/set6.js
+++ b/jstests/core/set6.js
@@ -2,19 +2,19 @@
t = db.set6;
t.drop();
-x = { _id : 1 , r : new DBRef( "foo" , new ObjectId() ) }
-t.insert( x )
+x = { _id : 1 , r : new DBRef( "foo" , new ObjectId() ) };
+t.insert( x );
assert.eq( x , t.findOne() , "A" );
-x.r.$id = new ObjectId()
+x.r.$id = new ObjectId();
t.update({}, { $set : { r : x.r } } );
assert.eq( x , t.findOne() , "B");
-x.r2 = new DBRef( "foo2" , 5 )
+x.r2 = new DBRef( "foo2" , 5 );
t.update( {} , { $set : { "r2" : x.r2 } } );
-assert.eq( x , t.findOne() , "C" )
+assert.eq( x , t.findOne() , "C" );
x.r.$id = 2;
-t.update( {} , { $set : { "r.$id" : 2 } } )
+t.update( {} , { $set : { "r.$id" : 2 } } );
assert.eq( x.r.$id , t.findOne().r.$id , "D");