Skip to content

Commit ecab6c2

Browse files
committed
Update dev-dependencies
1 parent 418a992 commit ecab6c2

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"unified": "^11.0.0",
3434
"unist-builder": "^4.0.0",
3535
"unist-util-visit": "^5.0.0",
36-
"xo": "^0.59.0"
36+
"xo": "^0.60.0"
3737
},
3838
"scripts": {
3939
"build": "tsc --build --clean && tsc --build && type-coverage",

test.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import {visit} from 'unist-util-visit'
2020
const {window} = new JSDOM('')
2121

2222
// 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
2525

2626
test('rehype-dom-parse', async function (t) {
2727
const processor = unified().use(rehypeDomParse).use(rehypeStringify).freeze()
@@ -127,10 +127,7 @@ test('rehype-dom-stringify', async function (t) {
127127

128128
await t.test('should support empty fragment', async function () {
129129
assert.equal(
130-
processor()
131-
.data('settings', {fragment: true})
132-
.processSync('')
133-
.toString(),
130+
processor().data('settings', {fragment: true}).processSync('').toString(),
134131
''
135132
)
136133
})

0 commit comments

Comments
 (0)