Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-siek committed Feb 13, 2025
1 parent 46956d6 commit 36c606f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
17 changes: 10 additions & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43091,13 +43091,16 @@ ${pendingInterceptorsFormatter.format(pending)}
.addBreak()
// Create GitHub annotations
for (const error of errors) {
core.error(`${error.ruleId} - ${error.description}`, {
file,
startLine: error.line,
startColumn: error.column,
endColumn: error.endColumn,
title: 'Axe Linter'
})
core.error(
`${file}:${error.line} - ${error.ruleId} - ${error.description}`,
{
file,
startLine: error.line,
startColumn: error.column,
endColumn: error.endColumn,
title: 'Axe Linter'
}
)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/linter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ describe('linter', () => {
)
assert.isTrue(
errorStub.calledWith(
'click-handler - Click handler should have keyboard equivalent',
'app.js:1 - click-handler - Click handler should have keyboard equivalent',
{
file: 'app.js',
startLine: 1,
Expand Down
17 changes: 10 additions & 7 deletions src/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,16 @@ export async function lintFiles(

// Create GitHub annotations
for (const error of errors) {
core.error(`${error.ruleId} - ${error.description}`, {
file,
startLine: error.line,
startColumn: error.column,
endColumn: error.endColumn,
title: 'Axe Linter'
})
core.error(
`${file}:${error.line} - ${error.ruleId} - ${error.description}`,
{
file,
startLine: error.line,
startColumn: error.column,
endColumn: error.endColumn,
title: 'Axe Linter'
}
)
}
}
}
Expand Down

0 comments on commit 36c606f

Please sign in to comment.