Skip to content

Commit 3ad09c6

Browse files
committed
Update dev-dependencies
1 parent 619a830 commit 3ad09c6

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"devDependencies": {
2626
"@types/node": "^22.0.0",
2727
"c8": "^10.0.0",
28-
"hastscript": "^8.0.0",
28+
"hastscript": "^9.0.0",
2929
"prettier": "^3.0.0",
3030
"remark-cli": "^12.0.0",
3131
"remark-preset-wooorm": "^11.0.0",

test/matches.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -1646,21 +1646,21 @@ test('select.matches()', async function (t) {
16461646
})
16471647

16481648
await t.test('should match if w/o elements or texts', async function () {
1649-
assert.ok(matches(':empty', h('', u('comment', '?'))))
1649+
assert.ok(matches(':empty', h('', [u('comment', '?')])))
16501650
})
16511651

16521652
await t.test('should not match if w/ elements', async function () {
16531653
assert.ok(!matches(':empty', h('', h(''))))
16541654
})
16551655

16561656
await t.test('should not match if w/ text', async function () {
1657-
assert.ok(!matches(':empty', h('', u('text', '.'))))
1657+
assert.ok(!matches(':empty', h('', [u('text', '.')])))
16581658
})
16591659

16601660
await t.test(
16611661
'should not match if w/ white-space text',
16621662
async function () {
1663-
assert.ok(!matches(':empty', h('', u('text', ' '))))
1663+
assert.ok(!matches(':empty', h('', [u('text', ' ')])))
16641664
}
16651665
)
16661666
})
@@ -1675,15 +1675,15 @@ test('select.matches()', async function (t) {
16751675
})
16761676

16771677
await t.test('should match if w/ white-space text', async function () {
1678-
assert.ok(matches(':blank', h('', u('text', ' '))))
1678+
assert.ok(matches(':blank', h('', [u('text', ' ')])))
16791679
})
16801680

16811681
await t.test('should not match if w/ elements', async function () {
16821682
assert.ok(!matches(':blank', h('', h(''))))
16831683
})
16841684

16851685
await t.test('should not match if w/ text', async function () {
1686-
assert.ok(!matches(':blank', h('', u('text', '.'))))
1686+
assert.ok(!matches(':blank', h('', [u('text', '.')])))
16871687
})
16881688
})
16891689

0 commit comments

Comments
 (0)