Skip to content

Commit 0d102a7

Browse files
committed
chore: add test yippee
1 parent 84c68ea commit 0d102a7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

test/unit/docs-text.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,4 +252,14 @@ describe('renderMarkdown', () => {
252252
expect(result).toContain('<code class="docs-inline-code">code</code>')
253253
expect(result).toContain('shiki')
254254
})
255+
256+
it('should handle basic markdown links', async () => {
257+
const result = await renderMarkdown(
258+
'This [thing](https://example.com) is really important',
259+
emptyLookup,
260+
)
261+
expect(result).toContain(
262+
'This <a href="https://example.com" target="_blank" rel="noreferrer" class="docs-link">thing</a> is really important',
263+
)
264+
})
255265
})

0 commit comments

Comments
 (0)