Skip to content

Commit

Permalink
Add unit test for TypeScript's "export import"
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Jun 19, 2020
1 parent 4a38ef4 commit e8f6208
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/src/rules/order.js
Expand Up @@ -2220,6 +2220,25 @@ context('TypeScript', function () {
},
parserConfig,
),
// Option alphabetize: {order: 'asc'}
test(
{
code: `
import { a } from "./a";
export namespace SomeNamespace {
export import a2 = a;
}
`,
parser,
options: [
{
groups: ['external', 'index'],
alphabetize: { order: 'asc' },
},
],
},
parserConfig,
),
],
invalid: [
// Option alphabetize: {order: 'asc'}
Expand Down

0 comments on commit e8f6208

Please sign in to comment.