diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:17:50 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:18:14 -0500 |
commit | 4ae691e8edc87d0e3cfb633bb91c328426be007b (patch) | |
tree | 52079a593f54382ca13a2e741633eab1b6271893 /jstests/core/in4.js | |
parent | a025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff) | |
download | mongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz |
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/in4.js')
-rw-r--r-- | jstests/core/in4.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/jstests/core/in4.js b/jstests/core/in4.js index cbe28e2e2df..c2f47bf8ed4 100644 --- a/jstests/core/in4.js +++ b/jstests/core/in4.js @@ -1,24 +1,24 @@ // SERVER-2343 Test $in empty array matching. t = db.jstests_in9; -t.drop(); +t.drop(); function someData() { t.remove({}); - t.save( {key: []} ); + t.save({key: []}); } function moreData() { - someData(); - t.save( {key: [1]} ); - t.save( {key: ['1']} ); - t.save( {key: null} ); - t.save( {} ); + someData(); + t.save({key: [1]}); + t.save({key: ['1']}); + t.save({key: null}); + t.save({}); } function check() { - assert.eq( 1, t.count( {key:[]} ) ); - assert.eq( 1, t.count( {key:{$in:[[]]}} ) ); + assert.eq(1, t.count({key: []})); + assert.eq(1, t.count({key: {$in: [[]]}})); } function doTest() { @@ -26,10 +26,10 @@ function doTest() { check(); moreData(); check(); -} +} -doTest(); +doTest(); // SERVER-1943 not fixed yet -t.ensureIndex( {key:1} ); +t.ensureIndex({key: 1}); doTest(); |