1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

chore: fix pty_complete_imports test on linux/mac (#15191)

This commit is contained in:
David Sherret 2022-07-13 10:49:14 -04:00 committed by GitHub
parent 698eeb90fd
commit 944d708e3c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -185,10 +185,14 @@ fn pty_complete_imports() {
let output = console.read_all_output(); let output = console.read_all_output();
assert_contains!(output, "Hello World"); assert_contains!(output, "Hello World");
}); });
}
#[test]
fn pty_complete_imports_no_panic_empty_specifier() {
// does not panic when tabbing when empty // does not panic when tabbing when empty
util::with_pty(&["repl"], |mut console| { util::with_pty(&["repl"], |mut console| {
console.write_line("import '\t"); console.write_line("import '\t';");
console.write_line("close();");
}); });
} }