Skip to content

Commit

Permalink
[Tests] add test for importing export =
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLeedham committed Jun 12, 2020
1 parent 54eb51b commit fa357cf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/files/typescript-export-assign-function.ts
@@ -0,0 +1 @@
export = function foo() {};
8 changes: 8 additions & 0 deletions tests/src/rules/default.js
Expand Up @@ -174,6 +174,14 @@ context('TypeScript', function () {
'import/resolver': { 'eslint-import-resolver-typescript': true },
},
}),
test({
code: `import foobar from "./typescript-export-assign-function"`,
parser: parser,
settings: {
'import/parsers': { [parser]: ['.ts'] },
'import/resolver': { 'eslint-import-resolver-typescript': true },
},
}),
test({
code: `import foobar from "./typescript-export-assign-mixed"`,
parser: parser,
Expand Down

0 comments on commit fa357cf

Please sign in to comment.