Skip to content

Commit 78d08de

Browse files
committed
Refactor to remove warning in tests
1 parent bcdc5b3 commit 78d08de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* @jsxRuntime automatic @jsxImportSource react */
22
/**
33
* @import {Root} from 'hast'
4-
* @import {ComponentProps, ReactElement} from 'react'
4+
* @import {ComponentProps} from 'react'
55
* @import {ExtraProps} from 'react-markdown'
66
*/
77

@@ -409,7 +409,7 @@ test('react-markdown', async function (t) {
409409
assert.equal(url, 'https://b.com')
410410
assert.equal(key, 'src')
411411
assert.equal(node.tagName, 'img')
412-
return ''
412+
return null
413413
}}
414414
/>
415415
),

0 commit comments

Comments
 (0)