File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 52
52
"remark-preset-wooorm" : " ^8.0.0" ,
53
53
"rimraf" : " ^3.0.0" ,
54
54
"tape" : " ^5.0.0" ,
55
- "to-vfile" : " ^6 .0.0" ,
55
+ "to-vfile" : " ^7 .0.0" ,
56
56
"type-coverage" : " ^2.0.0" ,
57
57
"typescript" : " ^4.0.0" ,
58
58
"unist-util-visit" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -15,14 +15,13 @@ import test from 'tape'
15
15
import { isHidden } from 'is-hidden'
16
16
import parse5 from 'parse5'
17
17
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'
20
19
import { fromParse5 } from '../index.js'
21
20
22
21
const join = path . join
23
22
24
23
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!' } )
26
25
27
26
t . deepEqual (
28
27
fromParse5 ( parse5 . parse ( String ( file ) ) ) ,
@@ -377,7 +376,7 @@ test('fixtures', (t) => {
377
376
function each ( fixture ) {
378
377
t . test ( fixture , ( st ) => {
379
378
const options = {
380
- file : vfile . readSync ( join ( base , fixture , 'index.html' ) ) ,
379
+ file : toVFile . readSync ( join ( base , fixture , 'index.html' ) ) ,
381
380
out : join ( base , fixture , 'index.json' )
382
381
}
383
382
You can’t perform that action at this time.
0 commit comments