summaryrefslogtreecommitdiff
path: root/jstests/core/update_min_max_examples.js
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2016-05-28 17:55:12 -0400
commit6dcdd23dd37ef12c87e71cf59ef01cd82432efe0 (patch)
treec8cfb5acb62c80f375bc37e7d4350382deea6a37 /jstests/core/update_min_max_examples.js
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'jstests/core/update_min_max_examples.js')
-rw-r--r--jstests/core/update_min_max_examples.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/jstests/core/update_min_max_examples.js b/jstests/core/update_min_max_examples.js
index a8a86f22986..7bcb6197f93 100644
--- a/jstests/core/update_min_max_examples.js
+++ b/jstests/core/update_min_max_examples.js
@@ -46,10 +46,7 @@ assert.writeOK(res);
assert.eq(coll.findOne({_id: 6}).a, 1e-15);
// $max with positional operator
-var insertdoc = {
- _id: 7,
- y: [{a: 2}, {a: 6}, {a: [9, 1, 1]}]
-};
+var insertdoc = {_id: 7, y: [{a: 2}, {a: 6}, {a: [9, 1, 1]}]};
coll.insert(insertdoc);
res = coll.update({_id: 7, "y.a": 6}, {$max: {"y.$.a": 7}});
assert.writeOK(res);