Skip to content

Commit

Permalink
feature: duplicated import rule
Browse files Browse the repository at this point in the history
  • Loading branch information
dbale-altoros committed Jan 16, 2025
1 parent 1a98e39 commit 9add7b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions e2e/autofix-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ describe('e2e', function () {
expect(result).to.be.true
})
})

// describe('autofix rule: imports-order Foo2', () => {
// before(function () {
// params = retrieveParams('imports-order/')
Expand Down
4 changes: 2 additions & 2 deletions e2e/formatters-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ describe('e2e', function () {
const reportLines = stdout.split('\n')
let expectedLine

for (let i = 0; i < reportLines.length - 3; i++) {
for (let i = 0; i < reportLines.length - 7; i++) {
expectedLine = `${foo2Output[i].filePath}:${foo2Output[i].line}:${foo2Output[i].column}: ${foo2Output[i].message} [${foo2Output[i].severity}/${foo2Output[i].ruleId}]`
expect(reportLines[i]).to.equal(expectedLine)
}
expect(code).to.equal(EXIT_CODES.OK)

const finalLine = '3 problem/s (3 warning/s)'
expect(reportLines[reportLines.length - 2]).to.equal(finalLine)
expect(reportLines[reportLines.length - 6]).to.equal(finalLine)
})

it('should make the output report with unix formatter for Foo and Foo2 and Foo3', () => {
Expand Down

0 comments on commit 9add7b5

Please sign in to comment.