Skip to content

Commit 6d73530

Browse files
[autofix.ci] apply automated fixes
1 parent 13a10d3 commit 6d73530

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

test/nuxt/a11y.spec.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,8 @@ const allowedWarnings: RegExp[] = [
8080
]
8181

8282
// Filter specific violations for rare edge cases (typically complex custom interactions in charts)
83-
function filterViolations(
84-
results: AxeResults,
85-
ignoredRuleIds: string[],
86-
): AxeResults['violations'] {
87-
return results.violations.filter(
88-
violation => !ignoredRuleIds.includes(violation.id),
89-
)
83+
function filterViolations(results: AxeResults, ignoredRuleIds: string[]): AxeResults['violations'] {
84+
return results.violations.filter(violation => !ignoredRuleIds.includes(violation.id))
9085
}
9186

9287
beforeEach(() => {
@@ -1106,10 +1101,7 @@ describe('component accessibility audits', () => {
11061101
})
11071102
const results = await runAxe(wrapper)
11081103

1109-
const violations = filterViolations(results, [
1110-
'nested-interactive',
1111-
'button-name',
1112-
])
1104+
const violations = filterViolations(results, ['nested-interactive', 'button-name'])
11131105
expect(violations).toEqual([])
11141106
})
11151107

0 commit comments

Comments
 (0)