summaryrefslogtreecommitdiff
path: root/jstests/core/js5.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/js5.js')
-rw-r--r--jstests/core/js5.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/core/js5.js b/jstests/core/js5.js
index 8fa45a0afe3..c02b451de42 100644
--- a/jstests/core/js5.js
+++ b/jstests/core/js5.js
@@ -2,9 +2,9 @@
t = db.jstests_js5;
t.drop();
-t.save( { a : 1 } );
-t.save( { a : 2 } );
+t.save({a: 1});
+t.save({a: 2});
-assert.eq( 2 , t.find( { "$where" : "this.a" } ).count() , "A" );
-assert.eq( 0 , t.find( { "$where" : "this.b" } ).count() , "B" );
-assert.eq( 0 , t.find( { "$where" : "this.b > 45" } ).count() , "C" );
+assert.eq(2, t.find({"$where": "this.a"}).count(), "A");
+assert.eq(0, t.find({"$where": "this.b"}).count(), "B");
+assert.eq(0, t.find({"$where": "this.b > 45"}).count(), "C");