Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Jan 24, 2025
1 parent ab26c9f commit 79fa21b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/markdown/plugin-shiki/tests/shiki-preWrapper.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
} from '../src/node/markdown/index.js'
import type { ShikiPluginOptions } from '../src/node/options.js'

const shikiHighlighter = await createShikiHighlighter()
const { highlighter, loadLang } = await createShikiHighlighter()

const createMarkdown = ({
preWrapper = true,
Expand All @@ -31,8 +31,9 @@ const createMarkdown = ({
const markdownFilePathGetter = createMarkdownFilePathGetter(md)

md.options.highlight = getHighLightFunction(
shikiHighlighter,
highlighter,
options,
loadLang,
markdownFilePathGetter,
)

Expand Down

0 comments on commit 79fa21b

Please sign in to comment.