(checks)
| 18 | } |
| 19 | |
| 20 | function renderChecks(checks) { |
| 21 | if (checks.length === 0) { |
| 22 | return "<p>No checks recorded.</p>"; |
| 23 | } |
| 24 | |
| 25 | return `<ul>${checks |
| 26 | .map( |
| 27 | (check) => |
| 28 | `<li><strong>${escapeHtml(check.id)}</strong> [${escapeHtml(check.status)}] ${escapeHtml(check.message)}</li>`, |
| 29 | ) |
| 30 | .join("")}</ul>`; |
| 31 | } |
| 32 | |
| 33 | function renderMetrics(metrics) { |
| 34 | if (metrics.length === 0) { |
no test coverage detected