diff options
author | clang-format-7.0.1 <adam.martin@10gen.com> | 2019-07-26 18:20:35 -0400 |
---|---|---|
committer | ADAM David Alan Martin <adam.martin@10gen.com> | 2019-07-27 11:02:23 -0400 |
commit | 134a4083953270e8a11430395357fb70a29047ad (patch) | |
tree | dd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /jstests/core/find_and_modify3.js | |
parent | 1e46b5049003f427047e723ea5fab15b5a9253ca (diff) | |
download | mongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz |
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'jstests/core/find_and_modify3.js')
-rw-r--r-- | jstests/core/find_and_modify3.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/core/find_and_modify3.js b/jstests/core/find_and_modify3.js index 3f8fc22d98d..a319aef7a2d 100644 --- a/jstests/core/find_and_modify3.js +++ b/jstests/core/find_and_modify3.js @@ -19,7 +19,8 @@ orig2 = t.findOne({_id: 2}); out = t.findAndModify({ query: {_id: 1, 'comments.i': 0}, - update: {$set: {'comments.$.j': 2}}, 'new': true, + update: {$set: {'comments.$.j': 2}}, + 'new': true, sort: {other: 1} }); assert.eq(out.comments[0], {i: 0, j: 2}); @@ -29,7 +30,8 @@ assert.eq(t.findOne({_id: 2}), orig2); out = t.findAndModify({ query: {other: 1, 'comments.i': 1}, - update: {$set: {'comments.$.j': 3}}, 'new': true, + update: {$set: {'comments.$.j': 3}}, + 'new': true, sort: {other: 1} }); assert.eq(out.comments[0], {i: 0, j: 2}); |