diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2022-07-13 10:49:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-13 10:49:14 -0400 |
commit | 944d708e3c12e49fc0a3a4b632f21faad4d400c7 (patch) | |
tree | e3469f8b24c32ae140e79464d53a84abded140c7 | |
parent | 698eeb90fd907d19d9366f07967a01f97daba74a (diff) |
chore: fix pty_complete_imports test on linux/mac (#15191)
-rw-r--r-- | cli/tests/integration/repl_tests.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index e24978876..94cbef3c9 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -185,10 +185,14 @@ fn pty_complete_imports() { let output = console.read_all_output(); assert_contains!(output, "Hello World"); }); +} +#[test] +fn pty_complete_imports_no_panic_empty_specifier() { // does not panic when tabbing when empty util::with_pty(&["repl"], |mut console| { - console.write_line("import '\t"); + console.write_line("import '\t';"); + console.write_line("close();"); }); } |