@@ -18,12 +18,13 @@ test('core', (t) => {
18
18
)
19
19
20
20
t . equal (
21
- // @ts -expect-error: `identifier`, `url` missing.
22
21
to ( {
23
22
type : 'root' ,
24
23
children : [
25
24
{ type : 'paragraph' , children : [ { type : 'text' , value : 'a' } ] } ,
25
+ // @ts -expect-error: `identifier`, `url` missing.
26
26
{ type : 'definition' , label : 'b' } ,
27
+ // @ts -expect-error: `identifier`, `url` missing.
27
28
{ type : 'definition' , label : 'c' } ,
28
29
{ type : 'paragraph' , children : [ { type : 'text' , value : 'd' } ] }
29
30
]
@@ -34,12 +35,13 @@ test('core', (t) => {
34
35
35
36
t . equal (
36
37
to (
37
- // @ts -expect-error: `identifier`, `url` missing.
38
38
{
39
39
type : 'root' ,
40
40
children : [
41
41
{ type : 'paragraph' , children : [ { type : 'text' , value : 'a' } ] } ,
42
+ // @ts -expect-error: `identifier`, `url` missing.
42
43
{ type : 'definition' , label : 'b' } ,
44
+ // @ts -expect-error: `identifier`, `url` missing.
43
45
{ type : 'definition' , label : 'c' } ,
44
46
{ type : 'paragraph' , children : [ { type : 'text' , value : 'd' } ] }
45
47
]
@@ -51,14 +53,17 @@ test('core', (t) => {
51
53
)
52
54
53
55
t . equal (
54
- // @ts -expect-error: `children` missing.
55
56
to ( {
56
57
type : 'root' ,
57
58
children : [
58
59
{ type : 'paragraph' , children : [ { type : 'text' , value : 'a' } ] } ,
60
+ // @ts -expect-error: `children` missing.
59
61
{ type : 'list' , children : [ { type : 'listItem' } ] } ,
62
+ // @ts -expect-error: `children` missing.
60
63
{ type : 'list' , children : [ { type : 'listItem' } ] } ,
64
+ // @ts -expect-error: `children` missing.
61
65
{ type : 'list' , ordered : true , children : [ { type : 'listItem' } ] } ,
66
+ // @ts -expect-error: `children` missing.
62
67
{ type : 'list' , ordered : true , children : [ { type : 'listItem' } ] } ,
63
68
{ type : 'paragraph' , children : [ { type : 'text' , value : 'd' } ] }
64
69
]
@@ -68,11 +73,11 @@ test('core', (t) => {
68
73
)
69
74
70
75
t . equal (
71
- // @ts -expect-error: `children` missing.
72
76
to ( {
73
77
type : 'root' ,
74
78
children : [
75
79
{ type : 'code' , value : 'a' } ,
80
+ // @ts -expect-error: `children` missing.
76
81
{ type : 'list' , children : [ { type : 'listItem' } ] } ,
77
82
{ type : 'code' , value : 'b' }
78
83
]
@@ -107,12 +112,12 @@ test('core', (t) => {
107
112
)
108
113
109
114
t . equal (
110
- // @ts -expect-error: `definition` in `listItem` is fine.
111
115
to ( {
112
116
type : 'listItem' ,
113
117
spread : false ,
114
118
children : [
115
119
{ type : 'paragraph' , children : [ { type : 'text' , value : 'a' } ] } ,
120
+ // @ts -expect-error: `definition` in `listItem` is fine.
116
121
{ type : 'definition' , label : 'b' , url : 'c' }
117
122
]
118
123
} ) ,
@@ -169,9 +174,9 @@ test('core', (t) => {
169
174
170
175
t . throws (
171
176
( ) => {
172
- // @ts -expect-error: custom node.
173
177
to ( {
174
178
type : 'paragraph' ,
179
+ // @ts -expect-error: custom node.
175
180
children : [ { type : 'text' , value : 'a' } , { type : 'unknown' } ]
176
181
} )
177
182
} ,
@@ -336,10 +341,10 @@ test('blockquote', (t) => {
336
341
)
337
342
338
343
t . equal (
339
- // @ts -expect-error: `definition` is fine in `blockquote`.
340
344
to ( {
341
345
type : 'blockquote' ,
342
346
children : [
347
+ // @ts -expect-error: `definition` is fine in `blockquote`.
343
348
{ type : 'definition' , label : 'a\nb' , url : 'c\nd' , title : 'e\nf' } ,
344
349
{
345
350
type : 'paragraph' ,
@@ -1878,10 +1883,10 @@ test('linkReference', (t) => {
1878
1883
)
1879
1884
1880
1885
t . equal (
1881
- // @ts -expect-error: `referenceType`, `identifier` missing.
1882
1886
to ( {
1883
1887
type : 'paragraph' ,
1884
1888
children : [
1889
+ // @ts -expect-error: `referenceType`, `identifier` missing.
1885
1890
{ type : 'linkReference' , children : [ { type : 'text' , value : 'a' } ] } ,
1886
1891
{ type : 'text' , value : '(b)' }
1887
1892
]
@@ -2795,7 +2800,6 @@ test('escape', (t) => {
2795
2800
2796
2801
t . equal (
2797
2802
to (
2798
- // @ts -expect-error: `null` for `checked` is what we’ve always used.
2799
2803
{
2800
2804
type : 'root' ,
2801
2805
children : [
@@ -2808,6 +2812,7 @@ test('escape', (t) => {
2808
2812
{
2809
2813
type : 'listItem' ,
2810
2814
spread : true ,
2815
+ // @ts -expect-error: `null` for `checked` is what we’ve always used.
2811
2816
checked : null ,
2812
2817
children : [
2813
2818
{
@@ -2822,12 +2827,14 @@ test('escape', (t) => {
2822
2827
{
2823
2828
type : 'list' ,
2824
2829
ordered : false ,
2830
+ // @ts -expect-error: `null` for `start` is what we’ve always used.
2825
2831
start : null ,
2826
2832
spread : false ,
2827
2833
children : [
2828
2834
{
2829
2835
type : 'listItem' ,
2830
2836
spread : false ,
2837
+ // @ts -expect-error: `null` for `checked` is what we’ve always used.
2831
2838
checked : null ,
2832
2839
children : [
2833
2840
{
0 commit comments