Skip to content

Commit 07172da

Browse files
committed
Add tests for deprecated 'assert' syntax
1 parent f7b02c0 commit 07172da

File tree

2 files changed

+2106
-911
lines changed

2 files changed

+2106
-911
lines changed

javascript/extractor/tests/esnext/input/import-assertion.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,14 @@ const v6 = import("module", { with: { type: "json" } });
1111

1212
import "module" // missing semicolon
1313
assert({type: "json"}); // function call, not import assertion
14+
15+
import "module" assert { type: "json" };
16+
import * as v1 from "module" assert { type: "json" };
17+
import { v2 } from "module" assert { type: "json" };
18+
import v3 from "module" assert { type: "json" };
19+
20+
export { v4 } from "module" assert { type: "json" };
21+
export * from "module" assert { type: "json" };
22+
export * as v5 from "module" assert { type: "json" };
23+
24+
const v6 = import("module", { assert: { type: "json" } });

0 commit comments

Comments
 (0)