Skip to content

Commit

Permalink
Move test up to avoid parsing error
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Jun 19, 2020
1 parent e8f6208 commit 354e6f0
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions tests/src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,21 @@ ruleTester.run('order', rule, {
},
],
}),
test({
code: `
import { a } from "./a";
export namespace SomeNamespace {
export import a2 = a;
}
`,
parser,
options: [
{
groups: ['external', 'index'],
alphabetize: { order: 'asc' },
},
],
}),
]),
],
invalid: [
Expand Down Expand Up @@ -2220,25 +2235,6 @@ 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 354e6f0

Please sign in to comment.