summaryrefslogtreecommitdiff
path: root/jstests/core/where4.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/where4.js')
-rw-r--r--jstests/core/where4.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/jstests/core/where4.js b/jstests/core/where4.js
index 612dba59e67..3db37ae6fe5 100644
--- a/jstests/core/where4.js
+++ b/jstests/core/where4.js
@@ -5,15 +5,14 @@ myDB.dropDatabase();
assert.writeOK(myDB.where4.insert({x: 1, y: 1}));
assert.writeOK(myDB.where4.insert({x: 2, y: 1}));
-assert.writeOK(myDB.where4.update(
- {
- $where: function() {
- return this.x == 1;
- }
- },
- {$inc: {y: 1}},
- false,
- true));
+assert.writeOK(myDB.where4.update({
+ $where: function() {
+ return this.x == 1;
+ }
+},
+ {$inc: {y: 1}},
+ false,
+ true));
assert.eq(2, myDB.where4.findOne({x: 1}).y);
assert.eq(1, myDB.where4.findOne({x: 2}).y);