Skip to content

Commit

Permalink
test(order): Add failing test for typescript-eslint-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
justinanastos committed Jul 12, 2018
1 parent 5adebd8 commit 3b1a806
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -1260,5 +1260,21 @@ ruleTester.run('order', rule, {
message: '`fs` import should occur before import of `async`',
}],
})),
// fix incorrect order with typescript-eslint-parser
test({
code: `
var async = require('async');
var fs = require('fs');
`,
output: `
var fs = require('fs');
var async = require('async');
`,
parser: 'typescript-eslint-parser',
errors: [{
ruleId: 'order',
message: '`fs` import should occur before import of `async`',
}],
}),
],
})

0 comments on commit 3b1a806

Please sign in to comment.