summaryrefslogtreecommitdiff
path: root/jstests/core/js8.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/js8.js')
-rw-r--r--jstests/core/js8.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/jstests/core/js8.js b/jstests/core/js8.js
index 15b7ff7d7af..d670abb0587 100644
--- a/jstests/core/js8.js
+++ b/jstests/core/js8.js
@@ -6,30 +6,30 @@ t.save({a: 1, b: [2, 3, 4]});
assert.eq(1, t.find().length(), "A");
assert.eq(1,
t.find(function() {
- return this.a == 1;
- }).length(),
+ return this.a == 1;
+ }).length(),
"B");
assert.eq(1,
t.find(function() {
- if (!this.b.length)
- return true;
- return this.b.length == 3;
- }).length(),
+ if (!this.b.length)
+ return true;
+ return this.b.length == 3;
+ }).length(),
"B2");
assert.eq(1,
t.find(function() {
- return this.b[0] == 2;
- }).length(),
+ return this.b[0] == 2;
+ }).length(),
"C");
assert.eq(0,
t.find(function() {
- return this.b[0] == 3;
- }).length(),
+ return this.b[0] == 3;
+ }).length(),
"D");
assert.eq(1,
t.find(function() {
- return this.b[1] == 3;
- }).length(),
+ return this.b[1] == 3;
+ }).length(),
"E");
assert(t.validate().valid);