Skip to content

Commit 8df84b7

Browse files
committed
Update dev-dependencies
1 parent a57a0bb commit 8df84b7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"remark-preset-wooorm": "^8.0.0",
5353
"rimraf": "^3.0.0",
5454
"tape": "^5.0.0",
55-
"to-vfile": "^6.0.0",
55+
"to-vfile": "^7.0.0",
5656
"type-coverage": "^2.0.0",
5757
"typescript": "^4.0.0",
5858
"unist-util-visit": "^3.0.0",

test/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@ import test from 'tape'
1515
import {isHidden} from 'is-hidden'
1616
import parse5 from 'parse5'
1717
import {visit} from 'unist-util-visit'
18-
// @ts-expect-error: to do type.
19-
import vfile from 'to-vfile'
18+
import {toVFile} from 'to-vfile'
2019
import {fromParse5} from '../index.js'
2120

2221
const join = path.join
2322

2423
test('hast-util-from-parse5', (t) => {
25-
const file = vfile({contents: '<title>Hello!</title><h1>World!'})
24+
const file = toVFile({value: '<title>Hello!</title><h1>World!'})
2625

2726
t.deepEqual(
2827
fromParse5(parse5.parse(String(file))),
@@ -377,7 +376,7 @@ test('fixtures', (t) => {
377376
function each(fixture) {
378377
t.test(fixture, (st) => {
379378
const options = {
380-
file: vfile.readSync(join(base, fixture, 'index.html')),
379+
file: toVFile.readSync(join(base, fixture, 'index.html')),
381380
out: join(base, fixture, 'index.json')
382381
}
383382

0 commit comments

Comments
 (0)