Skip to content

Commit

Permalink
[Tests] order add passing test to close #2081
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 21, 2021
1 parent b39770d commit 0a08b6a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/src/rules/order.js
Expand Up @@ -720,6 +720,31 @@ ruleTester.run('order', rule, {
},
],
}),
test({
code: `
import { UserInputError } from 'apollo-server-express';
import { new as assertNewEmail } from '~/Assertions/Email';
`,
options: [{
alphabetize: {
caseInsensitive: true,
order: 'asc',
},
pathGroups: [
{ pattern: '~/*', group: 'internal' },
],
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
],
'newlines-between': 'always',
}],
}),
...flatMap(getTSParsers, parser => [
// Order of the `import ... = require(...)` syntax
test({
Expand Down

0 comments on commit 0a08b6a

Please sign in to comment.