tests: fix e2e tests (#5706)
This commit is contained in:
parent
e3e7677753
commit
ad5d2af4e3
|
@ -169,13 +169,13 @@ export class TestRig {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (typeof promptOrOptions === 'string') {
|
if (typeof promptOrOptions === 'string') {
|
||||||
command += ` --prompt "${promptOrOptions}"`;
|
command += ` --prompt ${JSON.stringify(promptOrOptions)}`;
|
||||||
} else if (
|
} else if (
|
||||||
typeof promptOrOptions === 'object' &&
|
typeof promptOrOptions === 'object' &&
|
||||||
promptOrOptions !== null
|
promptOrOptions !== null
|
||||||
) {
|
) {
|
||||||
if (promptOrOptions.prompt) {
|
if (promptOrOptions.prompt) {
|
||||||
command += ` --prompt "${promptOrOptions.prompt}"`;
|
command += ` --prompt ${JSON.stringify(promptOrOptions.prompt)}`;
|
||||||
}
|
}
|
||||||
if (promptOrOptions.stdin) {
|
if (promptOrOptions.stdin) {
|
||||||
execOptions.input = promptOrOptions.stdin;
|
execOptions.input = promptOrOptions.stdin;
|
||||||
|
|
Loading…
Reference in New Issue