summaryrefslogtreecommitdiff
path: root/jstests/core/not3.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:17:50 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:18:14 -0500
commit4ae691e8edc87d0e3cfb633bb91c328426be007b (patch)
tree52079a593f54382ca13a2e741633eab1b6271893 /jstests/core/not3.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/not3.js')
-rw-r--r--jstests/core/not3.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/jstests/core/not3.js b/jstests/core/not3.js
index 9f3014f2c1a..9699f3838d1 100644
--- a/jstests/core/not3.js
+++ b/jstests/core/not3.js
@@ -9,11 +9,15 @@ t.save({_id: 0, arr: [1, 2, 3]});
t.save({_id: 1, arr: [10, 11]});
// Case 1: simple $ne over array field.
-var case1 = {arr: {$ne: 3}};
+var case1 = {
+ arr: {$ne: 3}
+};
assert.eq(1, t.find(case1).itcount(), "Case 1: wrong number of results");
assert.eq(1, t.findOne(case1)._id, "Case 1: wrong _id");
// Case 2: simple $not over array field.
-var case2 = {arr: {$not: {$gt: 6}}};
+var case2 = {
+ arr: {$not: {$gt: 6}}
+};
assert.eq(1, t.find(case2).itcount(), "Case 2: wrong number of results");
assert.eq(0, t.findOne(case2)._id, "Case 2: wrong _id");