Skip to content

Commit 15ef279

Browse files
committed
test: update test
1 parent beca777 commit 15ef279

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/unit/server/utils/readme.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,8 @@ describe('HTML output', () => {
375375
const markdown = `# Title\n\nSome **bold** text and a [link](https://example.com).`
376376
const result = await renderReadmeHtml(markdown, 'test-pkg')
377377

378-
expect(result.html).toBe(`<h3 id="user-content-title" data-level="1">Title</h3>
378+
expect(result.html)
379+
.toBe(`<h3 id="user-content-title" data-level="1"><a href="#user-content-title">Title</a></h3>
379380
<p>Some <strong>bold</strong> text and a <a href="https://example.com" rel="nofollow noreferrer noopener" target="_blank">link</a>.</p>
380381
`)
381382
})

0 commit comments

Comments
 (0)