Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 21, 2024
1 parent ea48aa6 commit 325160a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -52,7 +52,7 @@
"@types/ungap__structured-clone": "^1.0.0",
"c8": "^9.0.0",
"hast-util-to-html": "^9.0.0",
"hastscript": "^8.0.0",
"hastscript": "^9.0.0",
"mdast-util-from-markdown": "^2.0.0",
"prettier": "^3.0.0",
"remark-cli": "^11.0.0",
Expand Down
14 changes: 7 additions & 7 deletions test.js
Expand Up @@ -130,12 +130,12 @@ test('raw', async function (t) {
assert.deepEqual(
raw(
u('root', [
h('textarea', u('text', 'Some text that is <i>not</i> HTML.')),
h('textarea', [u('text', 'Some text that is <i>not</i> HTML.')]),
u('raw', '<img alt="foo" src="bar.jpg">')
])
),
u('root', {data: {quirksMode: false}}, [
h('textarea', u('text', 'Some text that is <i>not</i> HTML.')),
h('textarea', [u('text', 'Some text that is <i>not</i> HTML.')]),
h('img', {alt: 'foo', src: 'bar.jpg'})
])
)
Expand All @@ -153,7 +153,7 @@ test('raw', async function (t) {
])
),
u('root', {data: {quirksMode: false}}, [
h('textarea', u('text', 'Some text that is <i>not</i> HTML.')),
h('textarea', [u('text', 'Some text that is <i>not</i> HTML.')]),
h('img', {alt: 'foo', src: 'bar.jpg'})
])
)
Expand All @@ -173,8 +173,8 @@ test('raw', async function (t) {
])
),
u('root', {data: {quirksMode: false}}, [
h('textarea', u('text', 'Some text that is <i>not</i> HTML.')),
h('p', u('text', 'but this is'))
h('textarea', [u('text', 'Some text that is <i>not</i> HTML.')]),
h('p', [u('text', 'but this is')])
])
)
}
Expand Down Expand Up @@ -386,7 +386,7 @@ test('raw', async function (t) {
assert.deepEqual(
raw(u('root', [u('raw', '<script>alert(1)</script>')])),
u('root', {data: {quirksMode: false}}, [
h('script', u('text', 'alert(1)'))
h('script', [u('text', 'alert(1)')])
])
)
}
Expand All @@ -398,7 +398,7 @@ test('raw', async function (t) {
assert.deepEqual(
raw(u('root', [h('script', u('text', 'alert(1)'))])),
u('root', {data: {quirksMode: false}}, [
h('script', u('text', 'alert(1)'))
h('script', [u('text', 'alert(1)')])
])
)
}
Expand Down

0 comments on commit 325160a

Please sign in to comment.