summaryrefslogtreecommitdiff
path: root/tests/testdata/import_attributes
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-08-28 21:06:09 -0400
committerGitHub <noreply@github.com>2024-08-29 01:06:09 +0000
commit2afbc1aa39c37b688ea1e0c47161c2fcdefc05ab (patch)
tree783e4363b2838ff89d700387042ba5a79dd413ac /tests/testdata/import_attributes
parentd183533404bf7fe062331e414d5c2bc41e49d5e4 (diff)
feat: deprecate import assertions (#25281)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Diffstat (limited to 'tests/testdata/import_attributes')
-rw-r--r--tests/testdata/import_attributes/static_export.out6
-rw-r--r--tests/testdata/import_attributes/static_import.out6
-rw-r--r--tests/testdata/import_attributes/static_import.ts3
-rw-r--r--tests/testdata/import_attributes/static_reexport.ts2
4 files changed, 2 insertions, 15 deletions
diff --git a/tests/testdata/import_attributes/static_export.out b/tests/testdata/import_attributes/static_export.out
index d7e19c80f..41af79d7c 100644
--- a/tests/testdata/import_attributes/static_export.out
+++ b/tests/testdata/import_attributes/static_export.out
@@ -1,7 +1 @@
-⚠️ 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 85c75d3eb..e57dffa99 100644
--- a/tests/testdata/import_attributes/static_import.out
+++ b/tests/testdata/import_attributes/static_import.out
@@ -1,8 +1,2 @@
-⚠️ 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 } }
diff --git a/tests/testdata/import_attributes/static_import.ts b/tests/testdata/import_attributes/static_import.ts
index 1538a4a2f..f585b893f 100644
--- a/tests/testdata/import_attributes/static_import.ts
+++ b/tests/testdata/import_attributes/static_import.ts
@@ -1,6 +1,5 @@
import data1 from "./data.json" with { type: "json" };
-// deno-lint-ignore no-import-assertions
-import data2 from "./data.json" assert { type: "json" };
+import data2 from "./data.json" with { type: "json" };
console.log(data1);
console.log(data2);
diff --git a/tests/testdata/import_attributes/static_reexport.ts b/tests/testdata/import_attributes/static_reexport.ts
index 81af428be..e6175691c 100644
--- a/tests/testdata/import_attributes/static_reexport.ts
+++ b/tests/testdata/import_attributes/static_reexport.ts
@@ -1 +1 @@
-export { default } from "./data.json" assert { type: "json" };
+export { default } from "./data.json" with { type: "json" };