summaryrefslogtreecommitdiff
path: root/jstests/core/basic4.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/basic4.js')
-rw-r--r--jstests/core/basic4.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/core/basic4.js b/jstests/core/basic4.js
index 0cf7a261e63..4b2cf6f96be 100644
--- a/jstests/core/basic4.js
+++ b/jstests/core/basic4.js
@@ -1,12 +1,12 @@
-t = db.getCollection( "basic4" );
+t = db.getCollection("basic4");
t.drop();
-t.save( { a : 1 , b : 1.0 } );
+t.save({a: 1, b: 1.0});
-assert( t.findOne() );
-assert( t.findOne( { a : 1 } ) );
-assert( t.findOne( { a : 1.0 } ) );
-assert( t.findOne( { b : 1 } ) );
-assert( t.findOne( { b : 1.0 } ) );
+assert(t.findOne());
+assert(t.findOne({a: 1}));
+assert(t.findOne({a: 1.0}));
+assert(t.findOne({b: 1}));
+assert(t.findOne({b: 1.0}));
-assert( ! t.findOne( { b : 2.0 } ) );
+assert(!t.findOne({b: 2.0}));