diff options
Diffstat (limited to 'cli/tests/integration/repl_tests.rs')
-rw-r--r-- | cli/tests/integration/repl_tests.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs index edade5d92..59acc7dfb 100644 --- a/cli/tests/integration/repl_tests.rs +++ b/cli/tests/integration/repl_tests.rs @@ -79,7 +79,8 @@ fn pty_syntax_error_input() { console.write_line("close();"); let output = console.read_all_output(); - assert!(output.contains("Expected 4 hex characters")); + assert!(output + .contains("Bad character escape sequence, expected 4 hex characters")); assert!(output.contains("Unterminated string constant")); assert!(output.contains("Expected a semicolon")); }); @@ -162,7 +163,7 @@ fn pty_complete_imports() { let output = console.read_all_output(); assert!(output.contains("Hello World")); - assert!(output.contains("\ntesting output")); + assert!(output.contains("testing output\u{1b}")); }); // ensure when the directory changes that the suggestions come from the cwd |