Skip to content

Commit 3e533ad

Browse files
committed
Update tests for changes in remark
1 parent fba057d commit 3e533ad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"parse-latin": "^4.0.0",
3939
"remark": "^8.0.0",
4040
"remark-cli": "^4.0.0",
41+
"remark-frontmatter": "^1.0.0",
4142
"remark-preset-wooorm": "^3.0.0",
4243
"tape": "^4.0.0",
4344
"vfile": "^2.0.0",

test/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ var fs = require('fs');
44
var path = require('path');
55
var test = require('tape');
66
var remark = require('remark');
7+
var frontmatter = require('remark-frontmatter');
78
var vfile = require('vfile');
89
var Latin = require('parse-latin');
910
var Dutch = require('parse-dutch');
@@ -150,7 +151,7 @@ test('Fixtures', function (t) {
150151
var input = read(join(filepath, 'input.md'), 'utf-8');
151152

152153
t.deepEqual(
153-
toNLCST(remark().parse(input), vfile(input), Latin),
154+
toNLCST(remark().use(frontmatter).parse(input), vfile(input), Latin),
154155
JSON.parse(output),
155156
'should work on `' + fixture + '`'
156157
);

0 commit comments

Comments
 (0)