diff options
Diffstat (limited to 'tests/testdata')
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" }; |
