diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index e249788769..94cbef3c93 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();"); }); }