@@ -19,7 +19,7 @@ globalThis.document = document
1919
2020test ( 'hast-util-to-dom' , ( t ) => {
2121 t . equal (
22- // @ts -ignore runtime.
22+ // @ts -expect-error runtime.
2323 serializeNodeToHtmlString ( toDom ( { type : 'root' } ) ) ,
2424 '' ,
2525 'creates an empty root node'
@@ -43,7 +43,7 @@ test('hast-util-to-dom', (t) => {
4343 toDom ( {
4444 type : 'root' ,
4545 children : [
46- { type : 'doctype' , name : 'html' , public : null , system : null } ,
46+ { type : 'doctype' , name : 'html' , public : undefined , system : undefined } ,
4747 {
4848 type : 'element' ,
4949 tagName : 'html' ,
@@ -73,15 +73,15 @@ test('hast-util-to-dom', (t) => {
7373 )
7474
7575 t . equal (
76- // @ts -ignore runtime.
76+ // @ts -expect-error runtime.
7777 serializeNodeToHtmlString ( toDom ( { type : 'something-else' } ) ) ,
7878 '<div></div>' ,
7979 'creates an unknown node in HTML'
8080 )
8181
8282 t . equal (
8383 serializeNodeToHtmlString (
84- // @ts -ignore runtime.
84+ // @ts -expect-error runtime.
8585 toDom ( { type : 'something-else' } , { namespace : webNamespaces . svg } )
8686 ) ,
8787 '<g/>' ,
@@ -91,7 +91,7 @@ test('hast-util-to-dom', (t) => {
9191 t . equal (
9292 serializeNodeToHtmlString (
9393 toDom ( {
94- // @ts -ignore runtime.
94+ // @ts -expect-error runtime.
9595 type : 'something-else' ,
9696 children : [ { type : 'text' , value : 'value' } ]
9797 } )
@@ -165,7 +165,7 @@ test('hast-util-to-dom', (t) => {
165165 )
166166
167167 t . equal (
168- // @ts -ignore hast types out of date.
168+ // @ts -expect-error hast types out of date.
169169 serializeNodeToHtmlString ( toDom ( { type : 'doctype' } ) ) ,
170170 '<!DOCTYPE html>' ,
171171 'creates a doctype node'
@@ -292,7 +292,7 @@ test('hast-util-to-dom', (t) => {
292292 type : 'root' ,
293293 children : [ h ( 'html' , [ h ( 'title' , 'foo' ) , h ( 'h1' , 'bar' ) ] ) ]
294294 } ,
295- // @ts -ignore Minimum of what we need.
295+ // @ts -expect-error Minimum of what we need.
296296 { document : doc }
297297 )
298298 ) ,
0 commit comments