File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 33
33
"unified" : " ^11.0.0" ,
34
34
"unist-builder" : " ^4.0.0" ,
35
35
"unist-util-visit" : " ^5.0.0" ,
36
- "xo" : " ^0.59 .0"
36
+ "xo" : " ^0.60 .0"
37
37
},
38
38
"scripts" : {
39
39
"build" : " tsc --build --clean && tsc --build && type-coverage" ,
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ import {visit} from 'unist-util-visit'
20
20
const { window} = new JSDOM ( '' )
21
21
22
22
// The globals needed by `rehype-dom`.
23
- global . DOMParser = window . DOMParser
24
- global . document = window . document
23
+ globalThis . DOMParser = window . DOMParser
24
+ globalThis . document = window . document
25
25
26
26
test ( 'rehype-dom-parse' , async function ( t ) {
27
27
const processor = unified ( ) . use ( rehypeDomParse ) . use ( rehypeStringify ) . freeze ( )
@@ -127,10 +127,7 @@ test('rehype-dom-stringify', async function (t) {
127
127
128
128
await t . test ( 'should support empty fragment' , async function ( ) {
129
129
assert . equal (
130
- processor ( )
131
- . data ( 'settings' , { fragment : true } )
132
- . processSync ( '' )
133
- . toString ( ) ,
130
+ processor ( ) . data ( 'settings' , { fragment : true } ) . processSync ( '' ) . toString ( ) ,
134
131
''
135
132
)
136
133
} )
You can’t perform that action at this time.
0 commit comments