diff options
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/integration/repl_tests.rs | 5 | ||||
-rw-r--r-- | cli/tests/testdata/lint/expected_json.out | 2 | ||||
-rw-r--r-- | cli/tests/testdata/lint/without_config/malformed.js | 2 |
3 files changed, 5 insertions, 4 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 diff --git a/cli/tests/testdata/lint/expected_json.out b/cli/tests/testdata/lint/expected_json.out index 876aec9e0..61680607c 100644 --- a/cli/tests/testdata/lint/expected_json.out +++ b/cli/tests/testdata/lint/expected_json.out @@ -58,7 +58,7 @@ "errors": [ { "file_path": "[WILDCARD]malformed.js", - "message": "Expected '}', got '<eof>' at [WILDCARD]malformed.js:4:16" + "message": "Expected '{', got 'B' at [WILDCARD]malformed.js:4:16" } ] } diff --git a/cli/tests/testdata/lint/without_config/malformed.js b/cli/tests/testdata/lint/without_config/malformed.js index 5ad4650d6..9b64da898 100644 --- a/cli/tests/testdata/lint/without_config/malformed.js +++ b/cli/tests/testdata/lint/without_config/malformed.js @@ -1,4 +1,4 @@ // deno-fmt-ignore-file // intentionally malformed file -export class A {
\ No newline at end of file +export class A B C
\ No newline at end of file |