File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff 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
9287beforeEach ( ( ) => {
@@ -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
You can’t perform that action at this time.
0 commit comments