summaryrefslogtreecommitdiff
path: root/jstests/core/update_mul_examples.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:17:50 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:18:14 -0500
commit4ae691e8edc87d0e3cfb633bb91c328426be007b (patch)
tree52079a593f54382ca13a2e741633eab1b6271893 /jstests/core/update_mul_examples.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/update_mul_examples.js')
-rw-r--r--jstests/core/update_mul_examples.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/jstests/core/update_mul_examples.js b/jstests/core/update_mul_examples.js
index 36738b93990..390ae57efd8 100644
--- a/jstests/core/update_mul_examples.js
+++ b/jstests/core/update_mul_examples.js
@@ -5,35 +5,35 @@ coll.drop();
// $mul positive
coll.remove({});
-coll.save({_id:1, a:2});
+coll.save({_id: 1, a: 2});
res = coll.update({}, {$mul: {a: 10}});
assert.writeOK(res);
assert.eq(coll.findOne().a, 20);
// $mul negative
coll.remove({});
-coll.save({_id:1, a:2});
+coll.save({_id: 1, a: 2});
res = coll.update({}, {$mul: {a: -10}});
assert.writeOK(res);
assert.eq(coll.findOne().a, -20);
// $mul zero
coll.remove({});
-coll.save({_id:1, a:2});
+coll.save({_id: 1, a: 2});
res = coll.update({}, {$mul: {a: 0}});
assert.writeOK(res);
assert.eq(coll.findOne().a, 0);
// $mul decimal
coll.remove({});
-coll.save({_id:1, a:2});
+coll.save({_id: 1, a: 2});
res = coll.update({}, {$mul: {a: 1.1}});
assert.writeOK(res);
assert.eq(coll.findOne().a, 2.2);
// $mul negative decimal
coll.remove({});
-coll.save({_id:1, a:2});
+coll.save({_id: 1, a: 2});
res = coll.update({}, {$mul: {a: -0.1}});
assert.writeOK(res);
assert.eq(coll.findOne().a, -0.2);