diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2024-01-12 02:35:55 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 22:05:55 +0100 |
commit | 9268df5f3405103214b4e39d82e5ab1b465475a0 (patch) | |
tree | 76336155130a2e751a9509df370d0060020473ac /cli/tests/integration/run_tests.rs | |
parent | d8f86c8b9cf327db4d246c20cf60467cafe2ba64 (diff) |
fix(web): use rustyline for prompt (#21893)
Workaround until https://github.com/kkawakam/rustyline/pull/759
Diffstat (limited to 'cli/tests/integration/run_tests.rs')
-rw-r--r-- | cli/tests/integration/run_tests.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 36eee1100..2a349a5f2 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -2823,12 +2823,10 @@ mod permissions { .new_command() .args_vec(["run", "--quiet", "--unstable", "run/066_prompt.ts"]) .with_pty(|mut console| { - console.expect("What is your name? [Jane Doe] "); - console.write_line_raw("John Doe"); - console.expect("Your name is John Doe."); - console.expect("What is your name? [Jane Doe] "); + console.expect("What is your name? Jane Doe"); console.write_line_raw(""); console.expect("Your name is Jane Doe."); + console.expect("Prompt "); console.write_line_raw("foo"); console.expect("Your input is foo."); @@ -2852,9 +2850,6 @@ mod permissions { console.expect("Alert [Enter] "); console.write_line(""); console.expect("The end of test"); - console.expect("What is EOF? "); - console.write_line(""); - console.expect("Your answer is null"); }); } |