summaryrefslogtreecommitdiff
path: root/jstests/core/indexv.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/indexv.js')
-rw-r--r--jstests/core/indexv.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/jstests/core/indexv.js b/jstests/core/indexv.js
index 95074da7333..638de158aa4 100644
--- a/jstests/core/indexv.js
+++ b/jstests/core/indexv.js
@@ -3,16 +3,16 @@
t = db.jstests_indexv;
t.drop();
-t.ensureIndex( {'a.b':1} );
+t.ensureIndex({'a.b': 1});
-t.save( {a:[{},{b:1}]} );
-var e = t.find( {'a.b':null} ).explain("executionStats");
-assert.eq( 1, e.executionStats.nReturned );
-assert.eq( 1, e.executionStats.totalKeysExamined );
+t.save({a: [{}, {b: 1}]});
+var e = t.find({'a.b': null}).explain("executionStats");
+assert.eq(1, e.executionStats.nReturned);
+assert.eq(1, e.executionStats.totalKeysExamined);
t.drop();
-t.ensureIndex( {'a.b.c':1} );
-t.save( {a:[{b:[]},{b:{c:1}}]} );
-var e = t.find( {'a.b.c':null} ).explain("executionStats");
-assert.eq( 0, e.executionStats.nReturned );
-assert.eq( 1, e.executionStats.totalKeysExamined );
+t.ensureIndex({'a.b.c': 1});
+t.save({a: [{b: []}, {b: {c: 1}}]});
+var e = t.find({'a.b.c': null}).explain("executionStats");
+assert.eq(0, e.executionStats.nReturned);
+assert.eq(1, e.executionStats.totalKeysExamined);