Skip to content

Commit

Permalink
fixup! [Tests] export: add tests for a name collision with `export …
Browse files Browse the repository at this point in the history
…* from`
  • Loading branch information
ljharb committed Aug 21, 2020
1 parent 1a67453 commit b2d3707
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/rules/export.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test, testFilePath, SYNTAX_CASES, getTSParsers } from '../utils'
import { test, testFilePath, SYNTAX_CASES, getTSParsers, testVersion } from '../utils'

import { RuleTester } from 'eslint'
import eslintPkg from 'eslint/package.json'
Expand Down Expand Up @@ -35,15 +35,15 @@ ruleTester.run('export', rule, {
export { A, B };
`,
}),
test({
testVersion('>= 6', () => ({
code: `
export * as A from './named-export-collision/a';
export * as B from './named-export-collision/b';
`,
parserOptions: {
ecmaVersion: 2020,
},
}),
})),
],

invalid: [
Expand Down

0 comments on commit b2d3707

Please sign in to comment.