summaryrefslogtreecommitdiff
path: root/jstests/core/find_and_modify.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/find_and_modify.js
parentd4ac5673ea3f6cef4ce9dbcec90e31813997a528 (diff)
downloadmongo-6dcdd23dd37ef12c87e71cf59ef01cd82432efe0.tar.gz
SERVER-23971 Clang-Format code
Diffstat (limited to 'jstests/core/find_and_modify.js')
-rw-r--r--jstests/core/find_and_modify.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/jstests/core/find_and_modify.js b/jstests/core/find_and_modify.js
index cf2f8804d9e..394b618f109 100644
--- a/jstests/core/find_and_modify.js
+++ b/jstests/core/find_and_modify.js
@@ -69,7 +69,8 @@ var cmdRes = db.runCommand({
query: {_id: "miss"},
update: {$inc: {y: 1}},
fields: {foo: {$pop: ["bar"]}},
- upsert: true, new: true
+ upsert: true,
+ new: true
});
assert.commandFailed(cmdRes);
@@ -81,7 +82,8 @@ cmdRes = db.runCommand({
query: {_id: "found"},
update: {$inc: {y: 1}},
fields: {foo: {$pop: ["bar"]}},
- upsert: true, new: true
+ upsert: true,
+ new: true
});
assert.commandFailed(cmdRes);
@@ -90,7 +92,8 @@ cmdRes = db.runCommand({
findAndModify: t.getName(),
query: {_id: "found"},
update: {$inc: {y: 1}},
- fields: {foo: {$pop: ["bar"]}}, new: true
+ fields: {foo: {$pop: ["bar"]}},
+ new: true
});
assert.commandFailed(cmdRes);
@@ -128,7 +131,8 @@ cmdRes = db.runCommand({
findAndModify: t.getName(),
query: {_id: "missagain"},
update: {$inc: {y: 1}},
- upsert: true, new: true
+ upsert: true,
+ new: true
});
assert.commandWorked(cmdRes);
assert("value" in cmdRes);