summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/configExpand_exec_noexpand.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/configExpand_exec_noexpand.js')
-rw-r--r--jstests/noPassthrough/configExpand_exec_noexpand.js36
1 files changed, 19 insertions, 17 deletions
diff --git a/jstests/noPassthrough/configExpand_exec_noexpand.js b/jstests/noPassthrough/configExpand_exec_noexpand.js
index 03e147f036a..4b07036b9c6 100644
--- a/jstests/noPassthrough/configExpand_exec_noexpand.js
+++ b/jstests/noPassthrough/configExpand_exec_noexpand.js
@@ -1,27 +1,29 @@
// Test config file expansion using EXEC.
(function() {
- 'use strict';
+'use strict';
- load('jstests/noPassthrough/libs/configExpand/lib.js');
+load('jstests/noPassthrough/libs/configExpand/lib.js');
- // Unexpected elements.
- configExpandFailure({
- setParameter: {
- scramIterationCount: {__exec: makeReflectionCmd('12345'), foo: 'bar'},
- }
- },
- /expansion block must contain only '__exec'/);
+// Unexpected elements.
+configExpandFailure({
+ setParameter: {
+ scramIterationCount: {__exec: makeReflectionCmd('12345'), foo: 'bar'},
+ }
+},
+ /expansion block must contain only '__exec'/);
- const sicReflect = {setParameter: {scramIterationCount: {__exec: makeReflectionCmd('12345')}}};
+const sicReflect = {
+ setParameter: {scramIterationCount: {__exec: makeReflectionCmd('12345')}}
+};
- // Positive test just to be sure this works in a basic case before testing negatives.
- configExpandSuccess(sicReflect);
+// Positive test just to be sure this works in a basic case before testing negatives.
+configExpandSuccess(sicReflect);
- // Expansion not enabled.
- configExpandFailure(sicReflect, /__exec support has not been enabled/, {configExpand: 'none'});
+// Expansion not enabled.
+configExpandFailure(sicReflect, /__exec support has not been enabled/, {configExpand: 'none'});
- // Expansion enabled, but not recursively.
- configExpandFailure({__exec: makeReflectionCmd(jsToYaml(sicReflect)), type: 'yaml'},
- /__exec support has not been enabled/);
+// Expansion enabled, but not recursively.
+configExpandFailure({__exec: makeReflectionCmd(jsToYaml(sicReflect)), type: 'yaml'},
+ /__exec support has not been enabled/);
})();