summaryrefslogtreecommitdiff
path: root/jstests/core/update_multi5.js
diff options
context:
space:
mode:
authorclang-format-7.0.1 <adam.martin@10gen.com>2019-07-26 18:20:35 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-07-27 11:02:23 -0400
commit134a4083953270e8a11430395357fb70a29047ad (patch)
treedd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /jstests/core/update_multi5.js
parent1e46b5049003f427047e723ea5fab15b5a9253ca (diff)
downloadmongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'jstests/core/update_multi5.js')
-rw-r--r--jstests/core/update_multi5.js21
1 files changed, 10 insertions, 11 deletions
diff --git a/jstests/core/update_multi5.js b/jstests/core/update_multi5.js
index 871f10cbc07..8f797d8de2f 100644
--- a/jstests/core/update_multi5.js
+++ b/jstests/core/update_multi5.js
@@ -2,19 +2,18 @@
// tests that $addToSet works in a multi-update.
(function() {
- "use strict";
- var t = db.update_multi5;
- t.drop();
+"use strict";
+var t = db.update_multi5;
+t.drop();
- assert.writeOK(t.insert({path: 'r1', subscribers: [1, 2]}));
- assert.writeOK(t.insert({path: 'r2', subscribers: [3, 4]}));
+assert.writeOK(t.insert({path: 'r1', subscribers: [1, 2]}));
+assert.writeOK(t.insert({path: 'r2', subscribers: [3, 4]}));
- var res =
- assert.writeOK(t.update({}, {$addToSet: {subscribers: 5}}, {upsert: false, multi: true}));
+var res = assert.writeOK(t.update({}, {$addToSet: {subscribers: 5}}, {upsert: false, multi: true}));
- assert.eq(res.nMatched, 2, tojson(res));
+assert.eq(res.nMatched, 2, tojson(res));
- t.find().forEach(function(z) {
- assert.eq(3, z.subscribers.length, tojson(z));
- });
+t.find().forEach(function(z) {
+ assert.eq(3, z.subscribers.length, tojson(z));
+});
})();