summaryrefslogtreecommitdiff
path: root/tests/testdata/import_attributes
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/import_attributes')
-rw-r--r--tests/testdata/import_attributes/json_with_shebang.ts3
-rw-r--r--tests/testdata/import_attributes/static_export.out6
-rw-r--r--tests/testdata/import_attributes/static_import.out6
3 files changed, 13 insertions, 2 deletions
diff --git a/tests/testdata/import_attributes/json_with_shebang.ts b/tests/testdata/import_attributes/json_with_shebang.ts
index 0a785210f..9524026bc 100644
--- a/tests/testdata/import_attributes/json_with_shebang.ts
+++ b/tests/testdata/import_attributes/json_with_shebang.ts
@@ -1,4 +1,3 @@
-// deno-lint-ignore no-import-assertions
-import json from "./json_with_shebang.json" assert { type: "json" };
+import json from "./json_with_shebang.json" with { type: "json" };
console.log(json);
diff --git a/tests/testdata/import_attributes/static_export.out b/tests/testdata/import_attributes/static_export.out
index 41af79d7c..d7e19c80f 100644
--- a/tests/testdata/import_attributes/static_export.out
+++ b/tests/testdata/import_attributes/static_export.out
@@ -1 +1,7 @@
+⚠️ Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.
+
+export { default } from "./data.json" assert { type: "json" };
+
+ at file:///[WILDLINE]
+
{ a: "b", c: { d: 10 } }
diff --git a/tests/testdata/import_attributes/static_import.out b/tests/testdata/import_attributes/static_import.out
index e57dffa99..85c75d3eb 100644
--- a/tests/testdata/import_attributes/static_import.out
+++ b/tests/testdata/import_attributes/static_import.out
@@ -1,2 +1,8 @@
+⚠️ Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.
+
+import data2 from "./data.json" assert { type: "json" };
+
+ at file:///[WILDLINE]
+
{ a: "b", c: { d: 10 } }
{ a: "b", c: { d: 10 } }