diff options
Diffstat (limited to 'cli/tests/integration/lsp_tests.rs')
-rw-r--r-- | cli/tests/integration/lsp_tests.rs | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cli/tests/integration/lsp_tests.rs b/cli/tests/integration/lsp_tests.rs index c86d30456..2dea05015 100644 --- a/cli/tests/integration/lsp_tests.rs +++ b/cli/tests/integration/lsp_tests.rs @@ -760,7 +760,7 @@ fn lsp_deno_task() { } #[test] -fn lsp_import_assertions() { +fn lsp_import_attributes() { let context = TestContextBuilder::new().use_temp_cwd().build(); let mut client = context.new_lsp_command().build(); client.initialize(|builder| { @@ -806,9 +806,9 @@ fn lsp_import_assertions() { "end": { "line": 0, "character": 27 } }, "severity": 1, - "code": "no-assert-type", + "code": "no-attribute-type", "source": "deno", - "message": "The module is a JSON module and not being imported with an import assertion. Consider adding `assert { type: \"json\" }` to the import statement." + "message": "The module is a JSON module and not being imported with an import attribute. Consider adding `with { type: \"json\" }` to the import statement." } ]) ); @@ -831,9 +831,9 @@ fn lsp_import_assertions() { "end": { "line": 0, "character": 27 } }, "severity": 1, - "code": "no-assert-type", + "code": "no-attribute-type", "source": "deno", - "message": "The module is a JSON module and not being imported with an import assertion. Consider adding `assert { type: \"json\" }` to the import statement." + "message": "The module is a JSON module and not being imported with an import attribute. Consider adding `with { type: \"json\" }` to the import statement." }], "only": ["quickfix"] } @@ -843,7 +843,7 @@ fn lsp_import_assertions() { assert_eq!( res, json!([{ - "title": "Insert import assertion.", + "title": "Insert import attribute.", "kind": "quickfix", "diagnostics": [ { @@ -852,9 +852,9 @@ fn lsp_import_assertions() { "end": { "line": 0, "character": 27 } }, "severity": 1, - "code": "no-assert-type", + "code": "no-attribute-type", "source": "deno", - "message": "The module is a JSON module and not being imported with an import assertion. Consider adding `assert { type: \"json\" }` to the import statement." + "message": "The module is a JSON module and not being imported with an import attribute. Consider adding `with { type: \"json\" }` to the import statement." } ], "edit": { @@ -865,7 +865,7 @@ fn lsp_import_assertions() { "start": { "line": 0, "character": 27 }, "end": { "line": 0, "character": 27 } }, - "newText": " assert { type: \"json\" }" + "newText": " with { type: \"json\" }" } ] } |