Skip to content

Commit

Permalink
Add tests for duplicated imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Dec 26, 2021
1 parent 0b2af5e commit 78909d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/tests-module-string-names.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,3 +331,9 @@ testFail(
"An export name cannot include a lone surrogate. (1:32)",
{ sourceType: "module", ecmaVersion: 13 }
);

testFail(
'const foo = 43, bar = 32; export { foo, bar as "foo" };',
"Duplicate export 'foo' (1:47)",
{ sourceType: "module", ecmaVersion: 13 }
);

0 comments on commit 78909d0

Please sign in to comment.