From b751e97a014f486375c9b8c99446de237c7dbede Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Wed, 2 Mar 2022 13:39:08 +0900 Subject: fix(repl): fix null eval result (#13804) Co-authored-by: Satya Rohith --- cli/tests/integration/repl_tests.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index 571b65fa2..edade5d92 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -33,6 +33,17 @@ fn pty_multiline() { }); } +#[test] +fn pty_null() { + util::with_pty(&["repl"], |mut console| { + console.write_line("null"); + console.write_line("close();"); + + let output = console.read_all_output(); + assert!(output.contains("null")); + }); +} + #[test] fn pty_unpaired_braces() { util::with_pty(&["repl"], |mut console| { -- cgit v1.2.3