Skip to content

Commit 325160a

Browse files
committed
Update dependencies
1 parent ea48aa6 commit 325160a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@types/ungap__structured-clone": "^1.0.0",
5353
"c8": "^9.0.0",
5454
"hast-util-to-html": "^9.0.0",
55-
"hastscript": "^8.0.0",
55+
"hastscript": "^9.0.0",
5656
"mdast-util-from-markdown": "^2.0.0",
5757
"prettier": "^3.0.0",
5858
"remark-cli": "^11.0.0",

test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ test('raw', async function (t) {
130130
assert.deepEqual(
131131
raw(
132132
u('root', [
133-
h('textarea', u('text', 'Some text that is <i>not</i> HTML.')),
133+
h('textarea', [u('text', 'Some text that is <i>not</i> HTML.')]),
134134
u('raw', '<img alt="foo" src="bar.jpg">')
135135
])
136136
),
137137
u('root', {data: {quirksMode: false}}, [
138-
h('textarea', u('text', 'Some text that is <i>not</i> HTML.')),
138+
h('textarea', [u('text', 'Some text that is <i>not</i> HTML.')]),
139139
h('img', {alt: 'foo', src: 'bar.jpg'})
140140
])
141141
)
@@ -153,7 +153,7 @@ test('raw', async function (t) {
153153
])
154154
),
155155
u('root', {data: {quirksMode: false}}, [
156-
h('textarea', u('text', 'Some text that is <i>not</i> HTML.')),
156+
h('textarea', [u('text', 'Some text that is <i>not</i> HTML.')]),
157157
h('img', {alt: 'foo', src: 'bar.jpg'})
158158
])
159159
)
@@ -173,8 +173,8 @@ test('raw', async function (t) {
173173
])
174174
),
175175
u('root', {data: {quirksMode: false}}, [
176-
h('textarea', u('text', 'Some text that is <i>not</i> HTML.')),
177-
h('p', u('text', 'but this is'))
176+
h('textarea', [u('text', 'Some text that is <i>not</i> HTML.')]),
177+
h('p', [u('text', 'but this is')])
178178
])
179179
)
180180
}
@@ -386,7 +386,7 @@ test('raw', async function (t) {
386386
assert.deepEqual(
387387
raw(u('root', [u('raw', '<script>alert(1)</script>')])),
388388
u('root', {data: {quirksMode: false}}, [
389-
h('script', u('text', 'alert(1)'))
389+
h('script', [u('text', 'alert(1)')])
390390
])
391391
)
392392
}
@@ -398,7 +398,7 @@ test('raw', async function (t) {
398398
assert.deepEqual(
399399
raw(u('root', [h('script', u('text', 'alert(1)'))])),
400400
u('root', {data: {quirksMode: false}}, [
401-
h('script', u('text', 'alert(1)'))
401+
h('script', [u('text', 'alert(1)')])
402402
])
403403
)
404404
}

0 commit comments

Comments
 (0)