Skip to content

Commit a1cc086

Browse files
authored
docs(audit): change warning sign in reports (#126)
1 parent d1ee3de commit a1cc086

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/audits/render.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ export async function renderAuditResultsToHTML(results: AuditResult[]) {
3939
report += `<li><span style="font-family: monospace">💡</span> <b>${grouped.notice.length}</b> notices (suggestions)</li>\n`;
4040
}
4141
if (grouped.warn.length) {
42-
// TODO: warning sign is rendered as "⚠️" in markdown instead of the emoji
43-
report += `<li><span style="font-family: monospace">⚠️</span> <b>${grouped.warn.length}</b> warnings (optional)</li>\n`;
42+
report += `<li><span style="font-family: monospace">❗️</span> <b>${grouped.warn.length}</b> warnings (optional)</li>\n`;
4443
}
4544
if (grouped.error.length) {
4645
report += `<li><span style="font-family: monospace">❌</span> <b>${grouped.error.length}</b> errors (required)</li>\n`;

tests/audits.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe('Render audit results to HTML', () => {
119119
<ul>
120120
<li><b>6</b> audits in total</li>
121121
<li><span style="font-family: monospace">✅</span> <b>2</b> pass</li>
122-
<li><span style="font-family: monospace">️</span> <b>2</b> warnings (optional)</li>
122+
<li><span style="font-family: monospace">️</span> <b>2</b> warnings (optional)</li>
123123
<li><span style="font-family: monospace">❌</span> <b>2</b> errors (required)</li>
124124
</ul>
125125

0 commit comments

Comments
 (0)