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 0026aec commit 09d6154Copy full SHA for 09d6154
1 file changed
test/unit/docs-text.spec.ts
@@ -242,8 +242,8 @@ describe('renderMarkdown', () => {
242
const input = '```ts\nconst a = 1\n```\n\nSome text\n\n```js\nconst b = 2\n```'
243
const result = await renderMarkdown(input, emptyLookup)
244
expect(result).toContain('Some text')
245
- // Both code blocks should be highlighted
246
- expect((result.match(/shiki/g) || []).length).toBe(2)
+ // Both code blocks should be highlighted, search for `shiki` class
+ expect((result.match(/["\s]shiki["\s]/g) || []).length).toBe(2)
247
})
248
249
it('should not confuse inline code with fenced code blocks', async () => {
0 commit comments