(results: AxeUrlResult[])
| 83 | } |
| 84 | |
| 85 | function logResultsForAllUrls(results: AxeUrlResult[]): void { |
| 86 | logger.info( |
| 87 | formatAsciiTable({ |
| 88 | columns: [ |
| 89 | { key: 'url', label: 'URL', align: 'left' }, |
| 90 | { key: 'passes', label: 'Passes', align: 'right' }, |
| 91 | { key: 'violations', label: 'Violations', align: 'right' }, |
| 92 | { key: 'incomplete', label: 'Incomplete', align: 'right' }, |
| 93 | { key: 'inapplicable', label: 'Inapplicable', align: 'right' }, |
| 94 | ], |
| 95 | rows: results.map(res => ({ |
| 96 | url: res.url, |
| 97 | passes: res.axeResults.passes.length, |
| 98 | violations: res.axeResults.violations.length, |
| 99 | incomplete: res.axeResults.incomplete.length, |
| 100 | inapplicable: res.axeResults.inapplicable.length, |
| 101 | })), |
| 102 | }), |
| 103 | ); |
| 104 | } |
no test coverage detected