Skip to content

Commit 0a08b6a

Browse files
committed
[Tests] order add passing test to close #2081
1 parent b39770d commit 0a08b6a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

tests/src/rules/order.js

+25
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,31 @@ ruleTester.run('order', rule, {
720720
},
721721
],
722722
}),
723+
test({
724+
code: `
725+
import { UserInputError } from 'apollo-server-express';
726+
727+
import { new as assertNewEmail } from '~/Assertions/Email';
728+
`,
729+
options: [{
730+
alphabetize: {
731+
caseInsensitive: true,
732+
order: 'asc',
733+
},
734+
pathGroups: [
735+
{ pattern: '~/*', group: 'internal' },
736+
],
737+
groups: [
738+
'builtin',
739+
'external',
740+
'internal',
741+
'parent',
742+
'sibling',
743+
'index',
744+
],
745+
'newlines-between': 'always',
746+
}],
747+
}),
723748
...flatMap(getTSParsers, parser => [
724749
// Order of the `import ... = require(...)` syntax
725750
test({

0 commit comments

Comments
 (0)