Skip to content

Commit

Permalink
Update dev-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Dec 9, 2024
1 parent 418a992 commit ecab6c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"unified": "^11.0.0",
"unist-builder": "^4.0.0",
"unist-util-visit": "^5.0.0",
"xo": "^0.59.0"
"xo": "^0.60.0"
},
"scripts": {
"build": "tsc --build --clean && tsc --build && type-coverage",
Expand Down
9 changes: 3 additions & 6 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import {visit} from 'unist-util-visit'
const {window} = new JSDOM('')

// The globals needed by `rehype-dom`.
global.DOMParser = window.DOMParser
global.document = window.document
globalThis.DOMParser = window.DOMParser
globalThis.document = window.document

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

await t.test('should support empty fragment', async function () {
assert.equal(
processor()
.data('settings', {fragment: true})
.processSync('')
.toString(),
processor().data('settings', {fragment: true}).processSync('').toString(),
''
)
})
Expand Down

0 comments on commit ecab6c2

Please sign in to comment.