From 3a4e95c43191c02e54d5b002066df41fb7b4c750 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 12 Jul 2022 21:56:48 -0400 Subject: fix(repl): do not panic for import completions when the import specifier is empty (#15177) --- cli/tests/integration/repl_tests.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index 9731aa0aa..e24978876 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -185,6 +185,11 @@ fn pty_complete_imports() { let output = console.read_all_output(); assert_contains!(output, "Hello World"); }); + + // does not panic when tabbing when empty + util::with_pty(&["repl"], |mut console| { + console.write_line("import '\t"); + }); } #[test] -- cgit v1.2.3