diff options
Diffstat (limited to 'jstests/core/exists7.js')
-rw-r--r-- | jstests/core/exists7.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/core/exists7.js b/jstests/core/exists7.js index ce278ae1a57..ab02a41d445 100644 --- a/jstests/core/exists7.js +++ b/jstests/core/exists7.js @@ -6,16 +6,16 @@ t.drop(); function testIntegerExistsSpec() { t.remove({}); - t.save( {} ); - t.save( {a:1} ); - t.save( {a:2} ); - t.save( {a:3, b:3} ); - t.save( {a:4, b:4} ); + t.save({}); + t.save({a: 1}); + t.save({a: 2}); + t.save({a: 3, b: 3}); + t.save({a: 4, b: 4}); - assert.eq( 2, t.count( {b:{$exists:1}} ) ); - assert.eq( 3, t.count( {b:{$exists:0}} ) ); + assert.eq(2, t.count({b: {$exists: 1}})); + assert.eq(3, t.count({b: {$exists: 0}})); } testIntegerExistsSpec(); -t.ensureIndex( {b:1} ); +t.ensureIndex({b: 1}); testIntegerExistsSpec(); |