summaryrefslogtreecommitdiff
path: root/jstests/core/where4.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/where4.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/where4.js')
-rw-r--r--jstests/core/where4.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/jstests/core/where4.js b/jstests/core/where4.js
index 61ec3771bed..685665c982a 100644
--- a/jstests/core/where4.js
+++ b/jstests/core/where4.js
@@ -1,27 +1,27 @@
db.where4.drop();
-db.system.js.insert( { _id : "w4" , value : "5" } )
+db.system.js.insert( { _id : "w4" , value : "5" } );
-db.where4.insert( { x : 1 , y : 1 } )
-db.where4.insert( { x : 2 , y : 1 } )
+db.where4.insert( { x : 1 , y : 1 } );
+db.where4.insert( { x : 2 , y : 1 } );
db.where4.update( { $where : function() { return this.x == 1; } } ,
{ $inc : { y : 1 } } , false , true );
-assert.eq( 2 , db.where4.findOne( { x : 1 } ).y )
-assert.eq( 1 , db.where4.findOne( { x : 2 } ).y )
+assert.eq( 2 , db.where4.findOne( { x : 1 } ).y );
+assert.eq( 1 , db.where4.findOne( { x : 2 } ).y );
// Test that where queries work with stored javascript
-db.system.js.save( { _id : "where4_addOne" , value : function(x) { return x + 1; } } )
+db.system.js.save( { _id : "where4_addOne" , value : function(x) { return x + 1; } } );
db.where4.update( { $where : "where4_addOne(this.x) == 2" } ,
{ $inc : { y : 1 } } , false , true );
-assert.eq( 3 , db.where4.findOne( { x : 1 } ).y )
-assert.eq( 1 , db.where4.findOne( { x : 2 } ).y )
+assert.eq( 3 , db.where4.findOne( { x : 1 } ).y );
+assert.eq( 1 , db.where4.findOne( { x : 2 } ).y );
-db.system.js.remove( { _id : "where4_equalsOne" } )
+db.system.js.remove( { _id : "where4_equalsOne" } );
-db.system.js.remove( { _id : "w4" } )
+db.system.js.remove( { _id : "w4" } );