chore: add test
This commit is contained in:
parent
30ef0a278c
commit
f17d4a9fbf
|
@ -0,0 +1,18 @@
|
|||
import { describe, expect, it } from 'vitest'
|
||||
import { matter } from '@md-report/parser'
|
||||
|
||||
const source = `---
|
||||
aaa: bbb
|
||||
ccc: 111
|
||||
ddd: true
|
||||
---`
|
||||
|
||||
describe('frontmatter', () => {
|
||||
it('get frontmatter', () => {
|
||||
expect(matter(source).data).toEqual({
|
||||
aaa: 'bbb',
|
||||
ccc: 111,
|
||||
ddd: true,
|
||||
})
|
||||
})
|
||||
})
|
Loading…
Reference in New Issue