Skip to content

Commit

Permalink
Adjust tests accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
manuth committed Jun 19, 2020
1 parent be22b53 commit 2539870
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions tests/src/rules/order.js
Expand Up @@ -740,6 +740,7 @@ ruleTester.run('order', rule, {
},
],
}),
// Object-imports should not be forced to be alphabetized
test({
code: `
import debug = console.debug;
Expand All @@ -753,6 +754,19 @@ ruleTester.run('order', rule, {
},
],
}),
test({
code: `
import log = console.log;
import debug = console.debug;`,
parser,
options: [
{
alphabetize: {
order: 'asc',
},
},
],
}),
]),
],
invalid: [
Expand Down Expand Up @@ -1273,23 +1287,6 @@ ruleTester.run('order', rule, {
message: '`./blah` import should occur before import of `console.log`',
}],
}),
// Alphabetization of object-imports
test({
code: `
import log = console.log;
import debug = console.debug;`,
parser,
errors: [{
message: '`console.debug` import should occur before import of `console.log`',
}],
options: [
{
alphabetize: {
order: 'asc',
},
},
],
}),
]),
// Default order using import with custom import alias
test({
Expand Down

0 comments on commit 2539870

Please sign in to comment.