summaryrefslogtreecommitdiff
path: root/jstests/core/ore.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:17:50 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:18:14 -0500
commit4ae691e8edc87d0e3cfb633bb91c328426be007b (patch)
tree52079a593f54382ca13a2e741633eab1b6271893 /jstests/core/ore.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
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}]}));