mirror of
https://github.com/wahyd4/vuepress.git
synced 2026-08-23 12:15:52 +10:00
- fix($core): markdown slot doesn‘t work. (regression of c85f62d)
- docs: fresh Node.JS API.
- test: official plugins.
17 lines
464 B
JavaScript
17 lines
464 B
JavaScript
import { getFragment } from '@vuepress/test-utils'
|
|
import { Md } from './util'
|
|
import highlight from '../lib/highlight.js'
|
|
|
|
const md = Md()
|
|
const mdH = Md().set({ highlight })
|
|
|
|
describe('highlight', () => {
|
|
test('should highlight code', () => {
|
|
const input = getFragment(__dirname, 'code.md')
|
|
const output1 = md.render(input)
|
|
const output2 = mdH.render(input)
|
|
expect(output1 === output2).toBe(false)
|
|
expect(output2).toMatchSnapshot()
|
|
})
|
|
})
|