summaryrefslogtreecommitdiff
path: root/jstests/core/ore.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/ore.js')
-rw-r--r--jstests/core/ore.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/core/ore.js b/jstests/core/ore.js
index 93538f8b46b..959f43f5101 100644
--- a/jstests/core/ore.js
+++ b/jstests/core/ore.js
@@ -4,10 +4,10 @@
t = db.jstests_ore;
t.drop();
-t.ensureIndex( {a:-1} );
-t.ensureIndex( {b:1} );
+t.ensureIndex({a: -1});
+t.ensureIndex({b: 1});
-t.save( {a:1,b:1} );
-t.save( {a:2,b:1} );
+t.save({a: 1, b: 1});
+t.save({a: 2, b: 1});
-assert.eq( 2, t.count( {$or:[{a:{$in:[1,2]}},{b:1}]} ) );
+assert.eq(2, t.count({$or: [{a: {$in: [1, 2]}}, {b: 1}]}));