@@ -24,12 +24,7 @@ test('stringifyPosition', function (t) {
24
24
'' ,
25
25
'should return empty `string` with `number`'
26
26
)
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 `{}`' )
33
28
34
29
t . equal (
35
30
stringifyPosition ( { type : 'text' } ) ,
@@ -47,7 +42,6 @@ test('stringifyPosition', function (t) {
47
42
t . equal (
48
43
stringifyPosition ( {
49
44
type : 'text' ,
50
- // @ts -expect-error runtime.
51
45
position : { start : { } , end : { } }
52
46
} ) ,
53
47
'1:1-1:1' ,
@@ -58,9 +52,7 @@ test('stringifyPosition', function (t) {
58
52
stringifyPosition ( {
59
53
type : 'text' ,
60
54
position : {
61
- // @ts -expect-error runtime.
62
55
start : { line : null , column : null } ,
63
- // @ts -expect-error runtime.
64
56
end : { line : null , column : null }
65
57
}
66
58
} ) ,
@@ -96,7 +88,6 @@ test('stringifyPosition', function (t) {
96
88
)
97
89
98
90
t . equal (
99
- // @ts -expect-error runtime.
100
91
stringifyPosition ( { start : null , end : null } ) ,
101
92
'1:1-1:1' ,
102
93
'should return a range for a `position` without `point`s'
@@ -110,17 +101,14 @@ test('stringifyPosition', function (t) {
110
101
)
111
102
112
103
t . equal (
113
- // @ts -expect-error runtime.
114
104
stringifyPosition ( { start : { } , end : { } } ) ,
115
105
'1:1-1:1' ,
116
106
'should return range for `position` with invalid `point`s #1'
117
107
)
118
108
119
109
t . equal (
120
110
stringifyPosition ( {
121
- // @ts -expect-error runtime.
122
111
start : { line : null , column : null } ,
123
- // @ts -expect-error runtime.
124
112
end : { line : null , column : null }
125
113
} ) ,
126
114
'1:1-1:1' ,
@@ -137,7 +125,6 @@ test('stringifyPosition', function (t) {
137
125
)
138
126
139
127
t . equal (
140
- // @ts -expect-error runtime.
141
128
stringifyPosition ( { line : null , column : null } ) ,
142
129
'1:1' ,
143
130
'should return a point for a `point` without indices'
@@ -151,14 +138,12 @@ test('stringifyPosition', function (t) {
151
138
)
152
139
153
140
t . equal (
154
- // @ts -expect-error runtime.
155
141
stringifyPosition ( { line : 4 } ) ,
156
142
'4:1' ,
157
143
'should return a point for a partially valid `point` #1'
158
144
)
159
145
160
146
t . equal (
161
- // @ts -expect-error runtime.
162
147
stringifyPosition ( { column : 12 } ) ,
163
148
'1:12' ,
164
149
'should return a point for a partially valid `point` #1'
0 commit comments