summaryrefslogtreecommitdiff
path: root/jstests/core/indext.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/indext.js')
-rw-r--r--jstests/core/indext.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/jstests/core/indext.js b/jstests/core/indext.js
index 134e81acdeb..163a3e4a8a3 100644
--- a/jstests/core/indext.js
+++ b/jstests/core/indext.js
@@ -3,16 +3,16 @@
t = db.jstests_indext;
t.drop();
-t.ensureIndex( {'a.b':1}, {sparse:true} );
-t.save( {a:[]} );
-t.save( {a:1} );
-assert.eq( 0, t.find().hint( {'a.b':1} ).itcount() );
+t.ensureIndex({'a.b': 1}, {sparse: true});
+t.save({a: []});
+t.save({a: 1});
+assert.eq(0, t.find().hint({'a.b': 1}).itcount());
-t.ensureIndex( {'a.b':1,'a.c':1}, {sparse:true} );
-t.save( {a:[]} );
-t.save( {a:1} );
-assert.eq( 0, t.find().hint( {'a.b':1,'a.c':1} ).itcount() );
+t.ensureIndex({'a.b': 1, 'a.c': 1}, {sparse: true});
+t.save({a: []});
+t.save({a: 1});
+assert.eq(0, t.find().hint({'a.b': 1, 'a.c': 1}).itcount());
-t.save( {a:[{b:1}]} );
-t.save( {a:1} );
-assert.eq( 1, t.find().hint( {'a.b':1,'a.c':1} ).itcount() );
+t.save({a: [{b: 1}]});
+t.save({a: 1});
+assert.eq(1, t.find().hint({'a.b': 1, 'a.c': 1}).itcount());