Skip to content

Commit 44fe062

Browse files
authored
Merge pull request #108 from browserstack/AXE-674_add-severity-passes
chore: added severity to passes result also
2 parents ee349a8 + dbffe01 commit 44fe062

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/core/utils/aggregate-checks.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,7 @@ function aggregateChecks(nodeResOriginal) {
6767
nodeResult[type].forEach(check => impacts.push(check.impact));
6868
});
6969

70-
// for failed nodes, define the impact
71-
if ([CANTTELL_PRIO, FAIL_PRIO].includes(nodeResult.priority)) {
72-
nodeResult.impact = aggregate(constants.impact, impacts);
73-
} else {
74-
nodeResult.impact = null;
75-
}
70+
nodeResult.impact = aggregate(constants.impact, impacts);
7671

7772
// Delete the old result and priority properties
7873
anyAllNone(nodeResult, c => {

0 commit comments

Comments
 (0)