Skip to content

Commit dea7340

Browse files
committed
Fix tests for changes in React
1 parent 44d2e4a commit dea7340

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

test.jsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -544,12 +544,6 @@ test('Markdown', async function (t) {
544544
})
545545

546546
await t.test('should fail on an invalid component', function () {
547-
const warn = console.warn
548-
/** @type {unknown} */
549-
let message
550-
551-
console.error = capture
552-
553547
assert.throws(function () {
554548
renderToStaticMarkup(
555549
<Markdown
@@ -561,18 +555,6 @@ test('Markdown', async function (t) {
561555
/>
562556
)
563557
}, /Element type is invalid/)
564-
565-
console.error = warn
566-
567-
assert.match(String(message), /type is invalid/)
568-
569-
/**
570-
* @param {unknown} d
571-
* @returns {undefined}
572-
*/
573-
function capture(d) {
574-
message = d
575-
}
576558
})
577559

578560
await t.test('should support `components` (headings)', function () {

0 commit comments

Comments
 (0)