mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-22 19:56:02 +10:00
16 lines
424 B
JavaScript
16 lines
424 B
JavaScript
import { Md, getFragment } from './util'
|
|
import highlight from '../lib/highlight.js'
|
|
|
|
const md = Md()
|
|
const mdH = Md().set({ highlight })
|
|
|
|
describe('highlight', () => {
|
|
test('should highlight code', async () => {
|
|
const input = await getFragment('code')
|
|
const output1 = md.render(input)
|
|
const output2 = mdH.render(input)
|
|
expect(output1 === output2).toBe(false)
|
|
expect(output2).toMatchSnapshot()
|
|
})
|
|
})
|