summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2021-09-07 10:39:32 -0400
committerGitHub <noreply@github.com>2021-09-07 10:39:32 -0400
commit2c2e3ec1ca47803f791ea72ea6247d8eedf87ec8 (patch)
tree9ba3ddfde58f4a4feaf98fc230ec18861891c9be /cli/tests
parenta5bcf7033e66a828dc88a313f4cca11f116c3f83 (diff)
refactor(lsp): use deno_ast and cache swc ASTs (#11780)
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/integration/repl_tests.rs2
-rw-r--r--cli/tests/testdata/error_syntax.js.out2
-rw-r--r--cli/tests/testdata/error_syntax_empty_trailing_line.mjs.out2
-rw-r--r--cli/tests/testdata/swc_syntax_error.ts.out2
4 files changed, 4 insertions, 4 deletions
diff --git a/cli/tests/integration/repl_tests.rs b/cli/tests/integration/repl_tests.rs
index 20dfccb7e..79c2cf0f5 100644
--- a/cli/tests/integration/repl_tests.rs
+++ b/cli/tests/integration/repl_tests.rs
@@ -488,7 +488,7 @@ fn syntax_error() {
Some(vec![("NO_COLOR".to_owned(), "1".to_owned())]),
false,
);
- assert!(out.ends_with("parse error: Expected ';', '}' or <eof> at 1:7\n2\n"));
+ assert!(out.ends_with("parse error: Expected ';', '}' or <eof> at 1:8\n2\n"));
assert!(err.is_empty());
}
diff --git a/cli/tests/testdata/error_syntax.js.out b/cli/tests/testdata/error_syntax.js.out
index 4c2a007f1..84f924f8f 100644
--- a/cli/tests/testdata/error_syntax.js.out
+++ b/cli/tests/testdata/error_syntax.js.out
@@ -1 +1 @@
-error: Expected ,, got following at [WILDCARD]/error_syntax.js:3:5
+error: Expected ,, got following at [WILDCARD]/error_syntax.js:3:6
diff --git a/cli/tests/testdata/error_syntax_empty_trailing_line.mjs.out b/cli/tests/testdata/error_syntax_empty_trailing_line.mjs.out
index daa37818d..8b4feeb49 100644
--- a/cli/tests/testdata/error_syntax_empty_trailing_line.mjs.out
+++ b/cli/tests/testdata/error_syntax_empty_trailing_line.mjs.out
@@ -1 +1 @@
-error: Unexpected eof at [WILDCARD]/error_syntax_empty_trailing_line.mjs:2:21
+error: Unexpected eof at [WILDCARD]/error_syntax_empty_trailing_line.mjs:2:22
diff --git a/cli/tests/testdata/swc_syntax_error.ts.out b/cli/tests/testdata/swc_syntax_error.ts.out
index 53ed29cb6..98a753459 100644
--- a/cli/tests/testdata/swc_syntax_error.ts.out
+++ b/cli/tests/testdata/swc_syntax_error.ts.out
@@ -1 +1 @@
-error: Unexpected token `}`. Expected an identifier, void, yield, null, await, break, a string literal, a numeric literal, true, false, `, -, import, this, typeof, {, [, ( at [WILDCARD]syntax_error.ts:4:0
+error: Unexpected token `}`. Expected an identifier, void, yield, null, await, break, a string literal, a numeric literal, true, false, `, -, import, this, typeof, {, [, ( at [WILDCARD]syntax_error.ts:4:1