(page, name)
| 964 | }; |
| 965 | |
| 966 | const readability = async (page, name) => { |
| 967 | const measured = await measureReadability(page, READABILITY_EXCLUSIONS); |
| 968 | extras.readability.push({ |
| 969 | name, |
| 970 | candidates: measured.candidates, |
| 971 | overlaps: measured.overlaps, |
| 972 | clipped: measured.clipped, |
| 973 | }); |
| 974 | report.overlapViolations += measured.overlaps.length; |
| 975 | report.clippingViolations += measured.clipped.length; |
| 976 | report.cutWithoutHint += measured.clipped |
| 977 | .filter((entry) => entry.kind === 'cut-without-hint').length; |
| 978 | return measured; |
| 979 | }; |
| 980 | |
| 981 | /* ============================================================ AKT A */ |
| 982 | /* |
no test coverage detected