Skip to content

Commit

Permalink
Fix ACT mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
tombrunet committed Sep 25, 2023
1 parent d44fb09 commit e24aae1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accessibility-checker/test-act-w3/act.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ async function getAssertion(ruleId, aceRules, result) {
// Checkpoint refers to a rule mapping that has the ruleid
rule.id === ruleId
// and either maps to all reasons, or one the these reasons is selected
&& (!rule.reasonCodes || rule.reasonCodes.filter(code => aceRule.reasonIds.includes(code))
&& (!rule.reasonCodes || rule.reasonCodes.filter(code => aceRule.reasonIds.includes(code)))
).length > 0)
// Replace with the scId
.map(cp => cp.scId)
)).map(cp => cp.scId)
},
"result": { "outcome": result }
}
Expand Down

0 comments on commit e24aae1

Please sign in to comment.