@@ -24,12 +24,7 @@ test('stringifyPosition', function (t) {
2424 '' ,
2525 'should return empty `string` with `number`'
2626 )
27- t . equal (
28- // @ts -expect-error runtime.
29- stringifyPosition ( { } ) ,
30- '' ,
31- 'should return empty `string` with `{}`'
32- )
27+ t . equal ( stringifyPosition ( { } ) , '' , 'should return empty `string` with `{}`' )
3328
3429 t . equal (
3530 stringifyPosition ( { type : 'text' } ) ,
@@ -47,7 +42,6 @@ test('stringifyPosition', function (t) {
4742 t . equal (
4843 stringifyPosition ( {
4944 type : 'text' ,
50- // @ts -expect-error runtime.
5145 position : { start : { } , end : { } }
5246 } ) ,
5347 '1:1-1:1' ,
@@ -58,9 +52,7 @@ test('stringifyPosition', function (t) {
5852 stringifyPosition ( {
5953 type : 'text' ,
6054 position : {
61- // @ts -expect-error runtime.
6255 start : { line : null , column : null } ,
63- // @ts -expect-error runtime.
6456 end : { line : null , column : null }
6557 }
6658 } ) ,
@@ -96,7 +88,6 @@ test('stringifyPosition', function (t) {
9688 )
9789
9890 t . equal (
99- // @ts -expect-error runtime.
10091 stringifyPosition ( { start : null , end : null } ) ,
10192 '1:1-1:1' ,
10293 'should return a range for a `position` without `point`s'
@@ -110,17 +101,14 @@ test('stringifyPosition', function (t) {
110101 )
111102
112103 t . equal (
113- // @ts -expect-error runtime.
114104 stringifyPosition ( { start : { } , end : { } } ) ,
115105 '1:1-1:1' ,
116106 'should return range for `position` with invalid `point`s #1'
117107 )
118108
119109 t . equal (
120110 stringifyPosition ( {
121- // @ts -expect-error runtime.
122111 start : { line : null , column : null } ,
123- // @ts -expect-error runtime.
124112 end : { line : null , column : null }
125113 } ) ,
126114 '1:1-1:1' ,
@@ -137,7 +125,6 @@ test('stringifyPosition', function (t) {
137125 )
138126
139127 t . equal (
140- // @ts -expect-error runtime.
141128 stringifyPosition ( { line : null , column : null } ) ,
142129 '1:1' ,
143130 'should return a point for a `point` without indices'
@@ -151,14 +138,12 @@ test('stringifyPosition', function (t) {
151138 )
152139
153140 t . equal (
154- // @ts -expect-error runtime.
155141 stringifyPosition ( { line : 4 } ) ,
156142 '4:1' ,
157143 'should return a point for a partially valid `point` #1'
158144 )
159145
160146 t . equal (
161- // @ts -expect-error runtime.
162147 stringifyPosition ( { column : 12 } ) ,
163148 '1:12' ,
164149 'should return a point for a partially valid `point` #1'
0 commit comments