summaryrefslogtreecommitdiff
path: root/integration-tests
diff options
context:
space:
mode:
authorJack Wotherspoon <[email protected]>2025-08-06 16:46:50 -0400
committerGitHub <[email protected]>2025-08-06 20:46:50 +0000
commitad5d2af4e34fd23391bb6a0270cc320a0e56ba88 (patch)
treec37a88e15e177faf6332c918a8e93ee4f55a8cc9 /integration-tests
parente3e76777535da2817b5fcac012456db29147059e (diff)
tests: fix e2e tests (#5706)
Diffstat (limited to 'integration-tests')
-rw-r--r--integration-tests/test-helper.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/integration-tests/test-helper.js b/integration-tests/test-helper.js
index e4d55631..d1125a78 100644
--- a/integration-tests/test-helper.js
+++ b/integration-tests/test-helper.js
@@ -169,13 +169,13 @@ export class TestRig {
};
if (typeof promptOrOptions === 'string') {
- command += ` --prompt "${promptOrOptions}"`;
+ command += ` --prompt ${JSON.stringify(promptOrOptions)}`;
} else if (
typeof promptOrOptions === 'object' &&
promptOrOptions !== null
) {
if (promptOrOptions.prompt) {
- command += ` --prompt "${promptOrOptions.prompt}"`;
+ command += ` --prompt ${JSON.stringify(promptOrOptions.prompt)}`;
}
if (promptOrOptions.stdin) {
execOptions.input = promptOrOptions.stdin;