Skip to content

Commit

Permalink
test: glob groups
Browse files Browse the repository at this point in the history
  • Loading branch information
ykanavalik committed Jun 3, 2020
1 parent 1737429 commit 03e4ed4
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -2057,6 +2057,23 @@ ruleTester.run('order', rule, {
message: '`..` import should occur before import of `../a`',
}],
}),
test({
code: `
import a from 'namespace-1/a'
import c from 'namespace-2/c',
import b from 'namespace-1/b'
import d from 'namespace-2/d'
`,
output: `
import a from 'namespace-1/a'
import b from 'namespace-1/b'
import c from 'namespace-2/c',
import d from 'namespace-2/d'
`,
options: [{
groups: ['namespace-1/**/*', 'namespace-2/**/*'],
}],
}),
// Alphabetize with require
...semver.satisfies(eslintPkg.version, '< 3.0.0') ? [] : [
test({
Expand Down

0 comments on commit 03e4ed4

Please sign in to comment.