Skip to content

Commit b2d3707

Browse files
committed
fixup! [Tests] export: add tests for a name collision with export * from
1 parent 1a67453 commit b2d3707

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/src/rules/export.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { test, testFilePath, SYNTAX_CASES, getTSParsers } from '../utils'
1+
import { test, testFilePath, SYNTAX_CASES, getTSParsers, testVersion } from '../utils'
22

33
import { RuleTester } from 'eslint'
44
import eslintPkg from 'eslint/package.json'
@@ -35,15 +35,15 @@ ruleTester.run('export', rule, {
3535
export { A, B };
3636
`,
3737
}),
38-
test({
38+
testVersion('>= 6', () => ({
3939
code: `
4040
export * as A from './named-export-collision/a';
4141
export * as B from './named-export-collision/b';
4242
`,
4343
parserOptions: {
4444
ecmaVersion: 2020,
4545
},
46-
}),
46+
})),
4747
],
4848

4949
invalid: [

0 commit comments

Comments
 (0)