@@ -558,7 +558,7 @@ test('react-markdown', async function (t) {
558558disallowedElements = { [ 'a' ] }
559559/>
560560)
561- } , / o n l y o n e o f / i )
561+ } , / U n e x p e c t e d c o m b i n e d ` a l l o w e d E l e m e n t s ` a n d ` d i s a l l o w e d E l e m e n t s ` , e x p e c t e d o n e o r t h e o t h e r / )
562562}
563563)
564564
@@ -631,7 +631,7 @@ test('react-markdown', async function (t) {
631631)
632632} )
633633
634- await t . test ( 'should fail on invalid component' , function ( ) {
634+ await t . test ( 'should fail on an invalid component' , function ( ) {
635635assert . throws ( function ( ) {
636636asHtml (
637637< Markdown
@@ -642,7 +642,7 @@ test('react-markdown', async function (t) {
642642} }
643643/>
644644)
645- } , / C o m p o n e n t f o r n a m e ` h 1 ` / )
645+ } , / U n e x p e c t e d v a l u e ` 1 2 3 ` f o r ` h 1 ` , e x p e c t e d c o m p o n e n t o r t a g n a m e / )
646646} )
647647
648648await t . test ( 'should support `null`, `undefined` in components' , function ( ) {
@@ -1204,7 +1204,7 @@ test('react-markdown', async function (t) {
12041204await t . test ( 'should fail on a plugin replacing `root`' , function ( ) {
12051205assert . throws ( function ( ) {
12061206asHtml ( < Markdown children = "a" rehypePlugins = { [ plugin ] } /> )
1207- } , / E x p e c t e d a ` r o o t ` n o d e / )
1207+ } , / U n e x p e c t e d ` c o m m e n t ` n o d e , e x p e c t e d ` r o o t / )
12081208
12091209function plugin ( ) {
12101210/**
0 commit comments