Skip to content

Commit b87c8d1

Browse files
authored
Merge pull request #18 from oslabs-beta/staging
Staging -> Main; Axe Violations Nuance
2 parents 3cb947d + 733e060 commit b87c8d1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/context/useGenerateTest.jsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -848,17 +848,17 @@ function useGenerateTest(test, projectFilePath) {
848848
console.log('Congrats! Keep up the good work, you have 0 known violations!');
849849
} else {
850850
violations.forEach(axeViolation => {
851-
console.log('-------');
852-
const whereItFailed = axeViolation.nodes[0].html;
853-
// const failureSummary = axeViolation.nodes[0].failureSummary;
851+
const whereItFailed = axeViolation.nodes.map(node => node.html);
852+
// const failureSummary = axeViolation.nodes.map(node => node.failureSummary);
854853
855854
const { description, help, helpUrl } = axeViolation;
856855
857-
console.log('TEST DESCRIPTION: ', description,
858-
'ISSUE: ', help,
859-
'MORE INFO: ', helpUrl,
860-
'WHERE IT FAILED: ', whereItFailed,
861-
//'how to fix: ', failureSummary
856+
console.log('---------',
857+
'\\nTEST DESCRIPTION: ', description,
858+
'\\nISSUE: ', help,
859+
'\\nMORE INFO: ', helpUrl,
860+
'\\nWHERE IT FAILED: ', whereItFailed,
861+
// '\\nhow to fix: ', failureSummary
862862
);
863863
});
864864
}

0 commit comments

Comments
 (0)