diff options
Diffstat (limited to 'tests/specs')
-rw-r--r-- | tests/specs/future/import_assertions/__test__.jsonc | 9 | ||||
-rw-r--r-- | tests/specs/future/import_assertions/success.out | 6 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tests/specs/future/import_assertions/__test__.jsonc b/tests/specs/future/import_assertions/__test__.jsonc index a1e759c75..1c55d2220 100644 --- a/tests/specs/future/import_assertions/__test__.jsonc +++ b/tests/specs/future/import_assertions/__test__.jsonc @@ -8,6 +8,15 @@ "DENO_FUTURE": "1" } }, + // Running the same multiple times, should warn each time. + { + "args": "run main.js", + "output": "error.out", + "exitCode": 1, + "envs": { + "DENO_FUTURE": "1" + } + }, { "args": "run main.js", "output": "success.out" diff --git a/tests/specs/future/import_assertions/success.out b/tests/specs/future/import_assertions/success.out index 70ec274d9..fcf28b943 100644 --- a/tests/specs/future/import_assertions/success.out +++ b/tests/specs/future/import_assertions/success.out @@ -1 +1,7 @@ +⚠️ Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword. + +import foo from "./main.json" assert { type: "json" }; + + at [WILDCARD]import_assertions/main.js:1:30 + { foo: "foo" } |