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/count11.js | |
parent | a025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff) | |
download | mongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz |
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/count11.js')
-rw-r--r-- | jstests/core/count11.js | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/jstests/core/count11.js b/jstests/core/count11.js index 14392b9d90c..4ce218bfc43 100644 --- a/jstests/core/count11.js +++ b/jstests/core/count11.js @@ -5,8 +5,12 @@ var t = db.count11; t.drop(); -var validQuery = {a: 1}; -var invalidQuery = {a: {$invalid: 1}}; +var validQuery = { + a: 1 +}; +var invalidQuery = { + a: {$invalid: 1} +}; // Query non-existing collection with empty query. assert.eq(0, t.find().count()); @@ -16,11 +20,15 @@ assert.eq(0, t.find().itcount()); // Returns 0 on valid syntax query. // Fails on invalid syntax query. assert.eq(0, t.find(validQuery).count()); -assert.throws(function() { t.find(invalidQuery).count(); }); +assert.throws(function() { + t.find(invalidQuery).count(); +}); // Query existing collection. // Returns 0 on valid syntax query. // Fails on invalid syntax query. assert.commandWorked(db.createCollection(t.getName())); assert.eq(0, t.find(validQuery).count()); -assert.throws(function() { t.find(invalidQuery).count(); }); +assert.throws(function() { + t.find(invalidQuery).count(); +}); |