@@ -19,7 +19,7 @@ globalThis.document = document
19
19
20
20
test ( 'hast-util-to-dom' , ( t ) => {
21
21
t . equal (
22
- // @ts -ignore runtime.
22
+ // @ts -expect-error runtime.
23
23
serializeNodeToHtmlString ( toDom ( { type : 'root' } ) ) ,
24
24
'' ,
25
25
'creates an empty root node'
@@ -43,7 +43,7 @@ test('hast-util-to-dom', (t) => {
43
43
toDom ( {
44
44
type : 'root' ,
45
45
children : [
46
- { type : 'doctype' , name : 'html' , public : null , system : null } ,
46
+ { type : 'doctype' , name : 'html' , public : undefined , system : undefined } ,
47
47
{
48
48
type : 'element' ,
49
49
tagName : 'html' ,
@@ -73,15 +73,15 @@ test('hast-util-to-dom', (t) => {
73
73
)
74
74
75
75
t . equal (
76
- // @ts -ignore runtime.
76
+ // @ts -expect-error runtime.
77
77
serializeNodeToHtmlString ( toDom ( { type : 'something-else' } ) ) ,
78
78
'<div></div>' ,
79
79
'creates an unknown node in HTML'
80
80
)
81
81
82
82
t . equal (
83
83
serializeNodeToHtmlString (
84
- // @ts -ignore runtime.
84
+ // @ts -expect-error runtime.
85
85
toDom ( { type : 'something-else' } , { namespace : webNamespaces . svg } )
86
86
) ,
87
87
'<g/>' ,
@@ -91,7 +91,7 @@ test('hast-util-to-dom', (t) => {
91
91
t . equal (
92
92
serializeNodeToHtmlString (
93
93
toDom ( {
94
- // @ts -ignore runtime.
94
+ // @ts -expect-error runtime.
95
95
type : 'something-else' ,
96
96
children : [ { type : 'text' , value : 'value' } ]
97
97
} )
@@ -165,7 +165,7 @@ test('hast-util-to-dom', (t) => {
165
165
)
166
166
167
167
t . equal (
168
- // @ts -ignore hast types out of date.
168
+ // @ts -expect-error hast types out of date.
169
169
serializeNodeToHtmlString ( toDom ( { type : 'doctype' } ) ) ,
170
170
'<!DOCTYPE html>' ,
171
171
'creates a doctype node'
@@ -292,7 +292,7 @@ test('hast-util-to-dom', (t) => {
292
292
type : 'root' ,
293
293
children : [ h ( 'html' , [ h ( 'title' , 'foo' ) , h ( 'h1' , 'bar' ) ] ) ]
294
294
} ,
295
- // @ts -ignore Minimum of what we need.
295
+ // @ts -expect-error Minimum of what we need.
296
296
{ document : doc }
297
297
)
298
298
) ,
0 commit comments