Skip to content

Commit

Permalink
docs(audit): change warning sign in reports (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
h3ssan authored Aug 27, 2024
1 parent d1ee3de commit a1cc086
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/audits/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ export async function renderAuditResultsToHTML(results: AuditResult[]) {
report += `<li><span style="font-family: monospace">💡</span> <b>${grouped.notice.length}</b> notices (suggestions)</li>\n`;
}
if (grouped.warn.length) {
// TODO: warning sign is rendered as "⚠️" in markdown instead of the emoji
report += `<li><span style="font-family: monospace">⚠️</span> <b>${grouped.warn.length}</b> warnings (optional)</li>\n`;
report += `<li><span style="font-family: monospace">❗️</span> <b>${grouped.warn.length}</b> warnings (optional)</li>\n`;
}
if (grouped.error.length) {
report += `<li><span style="font-family: monospace">❌</span> <b>${grouped.error.length}</b> errors (required)</li>\n`;
Expand Down
2 changes: 1 addition & 1 deletion tests/audits.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ describe('Render audit results to HTML', () => {
<ul>
<li><b>6</b> audits in total</li>
<li><span style="font-family: monospace">✅</span> <b>2</b> pass</li>
<li><span style="font-family: monospace">️</span> <b>2</b> warnings (optional)</li>
<li><span style="font-family: monospace">️</span> <b>2</b> warnings (optional)</li>
<li><span style="font-family: monospace">❌</span> <b>2</b> errors (required)</li>
</ul>
Expand Down

0 comments on commit a1cc086

Please sign in to comment.