We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fb4414 commit 027cfb8Copy full SHA for 027cfb8
test/unit/server/utils/readme.spec.ts
@@ -572,6 +572,7 @@ describe('HTML output', () => {
572
it('adds id to HTML heading in multi-element token', async () => {
573
const md = '<h1 align="center">My Package</h1>\n<p align="center">A description</p>'
574
const result = await renderReadmeHtml(md, 'test-pkg')
575
+ expect(result.toc).toHaveLength(1)
576
expect(result.html).toContain('id="user-content-my-package"')
577
expect(result.toc[0]).toMatchObject({ text: 'My Package', depth: 1 })
578
})
0 commit comments