We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71865e3 commit 1a4fbb3Copy full SHA for 1a4fbb3
test.js
@@ -74,11 +74,18 @@ test('matter', async function () {
74
{matter: {true: false}},
75
'should pass yaml options (2)'
76
)
77
+ file = new VFile('---\n\n---\n')
78
+ matter(file, {yaml: {version: '1.1'}})
79
+ assert.deepEqual(
80
+ file.data,
81
+ {matter: null},
82
+ 'should not crash on empty frontmatter'
83
+ )
84
file = new VFile('---\n---\n')
85
matter(file, {yaml: {version: '1.1'}})
86
assert.deepEqual(
87
file.data,
- {matter: {}},
88
89
'should not crash on empty frontmatter'
90
91
})
0 commit comments