Skip to content

Commit 6452008

Browse files
committed
Add tests for module attributes to errors
1 parent b1558d1 commit 6452008

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

tests/misc/errors/js/__snapshots__/jsfmt.spec.js.snap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ exports[`html-like-comments.js error test 1`] = `
1111
6 | "
1212
`;
1313

14+
exports[`module-attributes.js error test 1`] = `
15+
"Unexpected token, expected \\";\\" (1:28)
16+
> 1 | import foo from \\"foo.json\\" with type: \\"json\\";
17+
| ^
18+
2 | "
19+
`;
20+
1421
exports[`no-for-in-init-concise-binary-in.js error test 1`] = `
1522
"Unexpected token, expected \\")\\" (3:18)
1623
1 | // https://github.com/babel/babel/pull/11931
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import foo from "foo.json" with type: "json";

0 commit comments

Comments
 (0)