summaryrefslogtreecommitdiff
path: root/cli/tests/integration
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/integration')
-rw-r--r--cli/tests/integration/lsp_tests.rs18
-rw-r--r--cli/tests/integration/run_tests.rs44
2 files changed, 31 insertions, 31 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\" }"
}
]
}
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index e7ff19954..dd5b346ae 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -2066,14 +2066,14 @@ itest!(shebang_swc {
});
itest!(shebang_with_json_imports_tsc {
- args: "run --quiet import_assertions/json_with_shebang.ts",
- output: "import_assertions/json_with_shebang.ts.out",
+ args: "run --quiet import_attributes/json_with_shebang.ts",
+ output: "import_attributes/json_with_shebang.ts.out",
exit_code: 1,
});
itest!(shebang_with_json_imports_swc {
- args: "run --quiet --no-check import_assertions/json_with_shebang.ts",
- output: "import_assertions/json_with_shebang.ts.out",
+ args: "run --quiet --no-check import_attributes/json_with_shebang.ts",
+ output: "import_attributes/json_with_shebang.ts.out",
exit_code: 1,
});
@@ -3050,36 +3050,36 @@ itest!(issue_13562 {
output: "run/issue13562.ts.out",
});
-itest!(import_assertions_static_import {
- args: "run --allow-read import_assertions/static_import.ts",
- output: "import_assertions/static_import.out",
+itest!(import_attributes_static_import {
+ args: "run --allow-read import_attributes/static_import.ts",
+ output: "import_attributes/static_import.out",
});
-itest!(import_assertions_static_export {
- args: "run --allow-read import_assertions/static_export.ts",
- output: "import_assertions/static_export.out",
+itest!(import_attributes_static_export {
+ args: "run --allow-read import_attributes/static_export.ts",
+ output: "import_attributes/static_export.out",
});
-itest!(import_assertions_static_error {
- args: "run --allow-read import_assertions/static_error.ts",
- output: "import_assertions/static_error.out",
+itest!(import_attributes_static_error {
+ args: "run --allow-read import_attributes/static_error.ts",
+ output: "import_attributes/static_error.out",
exit_code: 1,
});
-itest!(import_assertions_dynamic_import {
- args: "run --allow-read import_assertions/dynamic_import.ts",
- output: "import_assertions/dynamic_import.out",
+itest!(import_attributes_dynamic_import {
+ args: "run --allow-read --check import_attributes/dynamic_import.ts",
+ output: "import_attributes/dynamic_import.out",
});
-itest!(import_assertions_dynamic_error {
- args: "run --allow-read import_assertions/dynamic_error.ts",
- output: "import_assertions/dynamic_error.out",
+itest!(import_attributes_dynamic_error {
+ args: "run --allow-read import_attributes/dynamic_error.ts",
+ output: "import_attributes/dynamic_error.out",
exit_code: 1,
});
-itest!(import_assertions_type_check {
- args: "run --allow-read --check import_assertions/type_check.ts",
- output: "import_assertions/type_check.out",
+itest!(import_attributes_type_check {
+ args: "run --allow-read --check import_attributes/type_check.ts",
+ output: "import_attributes/type_check.out",
exit_code: 1,
});