Skip to content

Commit

Permalink
[Tests] no-unused-modules: add export + destructuring case
Browse files Browse the repository at this point in the history
Closes #1683.
  • Loading branch information
ljharb committed Apr 23, 2020
1 parent 381267a commit 67a31b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/src/rules/no-unused-modules.js
Expand Up @@ -52,6 +52,10 @@ ruleTester.run('no-unused-modules', rule, {
code: 'const a = 1; export default a'}),
test({ options: missingExportsOptions,
code: 'export class Foo {}'}),
test({ options: missingExportsOptions,
code: 'export const [foobar] = [];'}),
test({ options: missingExportsOptions,
code: 'export const [foobar] = foobarFactory();'}),
],
invalid: [
test({
Expand Down

0 comments on commit 67a31b1

Please sign in to comment.