summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorMike Grundy <michael.grundy@10gen.com>2016-02-25 14:37:12 -0500
committerMike Grundy <michael.grundy@10gen.com>2016-02-25 14:46:21 -0500
commiteada48bf3c3377878c334389f8e68bcddd25bd2a (patch)
tree7aab9079685537d74a09be66ff344bb3793cf84f /jstests
parenta5566c6c418daaa9e618c537653f41a867c42e12 (diff)
downloadmongo-eada48bf3c3377878c334389f8e68bcddd25bd2a.tar.gz
SERVER-22850 Clean up additional javascript issues found by eslint
Diffstat (limited to 'jstests')
-rw-r--r--jstests/concurrency/fsm_libs/fsm.js4
-rw-r--r--jstests/core/numberlong.js4
-rw-r--r--jstests/noPassthrough/js_protection.js2
-rw-r--r--jstests/readonly/lib/read_only_test.js4
4 files changed, 7 insertions, 7 deletions
diff --git a/jstests/concurrency/fsm_libs/fsm.js b/jstests/concurrency/fsm_libs/fsm.js
index dd6cfb52752..be9473c2684 100644
--- a/jstests/concurrency/fsm_libs/fsm.js
+++ b/jstests/concurrency/fsm_libs/fsm.js
@@ -33,8 +33,8 @@ var fsm = (function() {
shardNames.forEach(name =>
- connCache.shards[name] = args.cluster.shards[name].map(connStr =>
- new Mongo(connStr)));
+ (connCache.shards[name] = args.cluster.shards[name].map(connStr =>
+ new Mongo(connStr))));
}
for (var i = 0; i < args.iterations; ++i) {
diff --git a/jstests/core/numberlong.js b/jstests/core/numberlong.js
index bfc710080c3..adda61f8acb 100644
--- a/jstests/core/numberlong.js
+++ b/jstests/core/numberlong.js
@@ -35,7 +35,7 @@ assert.eq.automsg( "'NumberLong(\"4294967296\")'", "tojson( n )" );
assert.eq.automsg( "4294967296", "n.floatApprox" );
assert.eq.automsg( "", "n.top" );
assert.eq.automsg( "", "n.bottom" );
-a = {}
+a = {};
a.a = n;
p = tojson( a );
assert.eq.automsg( "'{ \"a\" : NumberLong(\"4294967296\") }'", "p" );
@@ -62,7 +62,7 @@ assert.eq.automsg( "'NumberLong(\"-11111111111111111\")'", "tojson( n )" );
assert.eq.automsg( "-11111111111111112", "n.floatApprox" );
assert.eq.automsg( "4292380288", "n.top" );
assert.eq.automsg( "3643379257", "n.bottom" );
-a = {}
+a = {};
a.a = n;
p = tojson( a );
assert.eq.automsg( "'{ \"a\" : NumberLong(\"-11111111111111111\") }'", "p" );
diff --git a/jstests/noPassthrough/js_protection.js b/jstests/noPassthrough/js_protection.js
index d500a87fda7..dde571499a8 100644
--- a/jstests/noPassthrough/js_protection.js
+++ b/jstests/noPassthrough/js_protection.js
@@ -57,7 +57,7 @@ function assertNoStoredWhere() {
* ACTUAL TEST
*/
-db.system.js.save( { _id : "stored_func" , value : funcToStore } )
+db.system.js.save( { _id : "stored_func" , value : funcToStore } );
t.insertOne({'_id': 0, 'myFunc': function() { return 'tesval'; } });
assertMongoClientCorrect();
diff --git a/jstests/readonly/lib/read_only_test.js b/jstests/readonly/lib/read_only_test.js
index 29c0e4fe57b..fe0d654d519 100644
--- a/jstests/readonly/lib/read_only_test.js
+++ b/jstests/readonly/lib/read_only_test.js
@@ -64,7 +64,7 @@ function* cycleN(arr, N) {
for (var i = 0; i < N; ++i) {
yield arr[i % arr.length];
}
-};
+}
function* zip2(iter1, iter2) {
var n1 = iter1.next();
@@ -82,4 +82,4 @@ function* zip2(iter1, iter2) {
yield res;
}
-};
+}