diff --git a/app/page.tsx b/app/page.tsx index e3d942e..1091738 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -676,7 +676,7 @@ export default function Home() { ) : ( msg.role === 'assistant' ?
- : msg.content && {msg.content} + : msg.content && )} {editingIndex === null && ('), `prose should be in a paragraph, got: ${html}`); + assert.ok(html.includes('language-typescript'), `code fence should be highlighted as typescript, got: ${html}`); + assert.ok(html.includes('hljs'), `hljs class should be present, got: ${html}`); + assert.ok(html.includes('code-block'), `copy button wrapper should be present, got: ${html}`); +}); + // ── parseStreamError ───────────────────────────────────────────────────────── test('parseStreamError: 429 → rate limit message', () => {