MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / summarize

Function summarize

skills/hyperframes-creative/scripts/contrast-report.mjs:309–315  ·  view source on GitHub ↗
(entries)

Source from the content-addressed store, hash-verified

307// ─── Summary ────────────────────────────────────────────────────────────────
308
309function summarize(entries) {
310 const total = entries.length;
311 const failAA = entries.filter((e) => !e.wcagAA).length;
312 const passAAonly = entries.filter((e) => e.wcagAA && !e.wcagAAA).length;
313 const passAAA = entries.filter((e) => e.wcagAAA).length;
314 return { total, failAA, passAAonly, passAAA };
315}
316
317function printSummary({ summary, entries }) {
318 const { total, failAA, passAAonly, passAAA } = summary;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected