Skip to content

Commit

Permalink
Fix old eslint tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypnosphi committed Aug 30, 2021
1 parent 86a87d3 commit 63c3c5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/src/rules/no-unused-modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,11 @@ ruleTester.run('no-unused-modules', rule, {


describe('dynamic imports', () => {
if (semver.satisfies(eslintPkg.version, '< 6')) {
this.skip();
return;
}
beforeEach(function () {
if (semver.satisfies(eslintPkg.version, '< 6')) {
this.skip();
}
});

// test for unused exports with `import()`
ruleTester.run('no-unused-modules', rule, {
Expand Down

0 comments on commit 63c3c5a

Please sign in to comment.