summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/setshellparameter.js
diff options
context:
space:
mode:
authorclang-format-7.0.1 <adam.martin@10gen.com>2019-07-26 18:20:35 -0400
committerADAM David Alan Martin <adam.martin@10gen.com>2019-07-27 11:02:23 -0400
commit134a4083953270e8a11430395357fb70a29047ad (patch)
treedd428e1230e31d92b20b393dfdc17ffe7fa79cb6 /jstests/noPassthrough/setshellparameter.js
parent1e46b5049003f427047e723ea5fab15b5a9253ca (diff)
downloadmongo-134a4083953270e8a11430395357fb70a29047ad.tar.gz
SERVER-41772 Apply clang-format 7.0.1 to the codebase
Diffstat (limited to 'jstests/noPassthrough/setshellparameter.js')
-rw-r--r--jstests/noPassthrough/setshellparameter.js26
1 files changed, 12 insertions, 14 deletions
diff --git a/jstests/noPassthrough/setshellparameter.js b/jstests/noPassthrough/setshellparameter.js
index 9fd17abb605..deed3dc4076 100644
--- a/jstests/noPassthrough/setshellparameter.js
+++ b/jstests/noPassthrough/setshellparameter.js
@@ -1,22 +1,20 @@
// Test --setShellParameter CLI switch.
(function() {
- 'use strict';
+'use strict';
- function test(ssp, succeed) {
- const result =
- runMongoProgram('./mongo', '--setShellParameter', ssp, '--nodb', '--eval', ';');
- assert.eq(0 == result,
- succeed,
- '--setShellParameter ' + ssp + 'worked/didn\'t-work unexpectedly');
- }
+function test(ssp, succeed) {
+ const result = runMongoProgram('./mongo', '--setShellParameter', ssp, '--nodb', '--eval', ';');
+ assert.eq(
+ 0 == result, succeed, '--setShellParameter ' + ssp + 'worked/didn\'t-work unexpectedly');
+}
- // Whitelisted
- test('disabledSecureAllocatorDomains=foo', true);
+// Whitelisted
+test('disabledSecureAllocatorDomains=foo', true);
- // Not whitelisted
- test('enableTestCommands=1', false);
+// Not whitelisted
+test('enableTestCommands=1', false);
- // Unknown
- test('theAnswerToTheQuestionOfLifeTheUniverseAndEverything=42', false);
+// Unknown
+test('theAnswerToTheQuestionOfLifeTheUniverseAndEverything=42', false);
})();