Skip to content

Commit

Permalink
Add test for babel/babel#12264
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Nov 6, 2020
1 parent 08193c5 commit d7e3214
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/misc/errors/js/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -11,6 +11,13 @@ exports[`html-like-comments.js error test 1`] = `
6 | "
`;

exports[`import-assertions-for-export-without-from.js error test 1`] = `
"Unexpected token, expected \\";\\" (1:16)
> 1 | export { foo } assert { type: \\"json\\" };
| ^
2 | "
`;

exports[`import-assertions-with-parens.js error test 1`] = `
"Unexpected token (1:19)
> 1 | import \\"x\\" assert ({type: 'json'});
Expand Down
@@ -0,0 +1 @@
export { foo } assert { type: "json" };

0 comments on commit d7e3214

Please sign in to comment.