Skip to content

Commit 09d6154

Browse files
committed
chore: update test for new code theme
1 parent 0026aec commit 09d6154

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/docs-text.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ describe('renderMarkdown', () => {
242242
const input = '```ts\nconst a = 1\n```\n\nSome text\n\n```js\nconst b = 2\n```'
243243
const result = await renderMarkdown(input, emptyLookup)
244244
expect(result).toContain('Some text')
245-
// Both code blocks should be highlighted
246-
expect((result.match(/shiki/g) || []).length).toBe(2)
245+
// Both code blocks should be highlighted, search for `shiki` class
246+
expect((result.match(/["\s]shiki["\s]/g) || []).length).toBe(2)
247247
})
248248

249249
it('should not confuse inline code with fenced code blocks', async () => {

0 commit comments

Comments
 (0)