summaryrefslogtreecommitdiff
path: root/jstests/core/org.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/org.js')
-rw-r--r--jstests/core/org.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/core/org.js b/jstests/core/org.js
index 19239f96c10..4bc4a813b4c 100644
--- a/jstests/core/org.js
+++ b/jstests/core/org.js
@@ -3,17 +3,17 @@
t = db.jstests_org;
t.drop();
-t.ensureIndex( {a:1}, {sparse:true} );
-t.ensureIndex( {b:1} );
+t.ensureIndex({a: 1}, {sparse: true});
+t.ensureIndex({b: 1});
t.remove({});
-t.save( {a:1,b:2} );
-assert.eq( 1, t.count( {$or:[{a:1},{b:2}]} ) );
+t.save({a: 1, b: 2});
+assert.eq(1, t.count({$or: [{a: 1}, {b: 2}]}));
t.remove({});
-t.save( {a:null,b:2} );
-assert.eq( 1, t.count( {$or:[{a:null},{b:2}]} ) );
+t.save({a: null, b: 2});
+assert.eq(1, t.count({$or: [{a: null}, {b: 2}]}));
t.remove({});
-t.save( {b:2} );
-assert.eq( 1, t.count( {$or:[{a:null},{b:2}]} ) );
+t.save({b: 2});
+assert.eq(1, t.count({$or: [{a: null}, {b: 2}]}));