@@ -139,7 +139,10 @@ ruleTester.run('no-deprecated-events-api', rule, {
139
139
{
140
140
message :
141
141
'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
142
- line : 4
142
+ line : 4 ,
143
+ column : 18 ,
144
+ endLine : 4 ,
145
+ endColumn : 21
143
146
}
144
147
]
145
148
} ,
@@ -157,7 +160,10 @@ ruleTester.run('no-deprecated-events-api', rule, {
157
160
{
158
161
message :
159
162
'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
160
- line : 4
163
+ line : 4 ,
164
+ column : 18 ,
165
+ endLine : 4 ,
166
+ endColumn : 22
161
167
}
162
168
]
163
169
} ,
@@ -177,7 +183,10 @@ ruleTester.run('no-deprecated-events-api', rule, {
177
183
{
178
184
message :
179
185
'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
180
- line : 4
186
+ line : 4 ,
187
+ column : 18 ,
188
+ endLine : 4 ,
189
+ endColumn : 23
181
190
}
182
191
]
183
192
} ,
@@ -198,7 +207,10 @@ ruleTester.run('no-deprecated-events-api', rule, {
198
207
{
199
208
message :
200
209
'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
201
- line : 5
210
+ line : 5 ,
211
+ column : 16 ,
212
+ endLine : 5 ,
213
+ endColumn : 19
202
214
}
203
215
]
204
216
} ,
@@ -215,9 +227,30 @@ ruleTester.run('no-deprecated-events-api', rule, {
215
227
` ,
216
228
languageOptions,
217
229
errors : [
218
- 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
219
- 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
220
- 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.'
230
+ {
231
+ message :
232
+ 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
233
+ line : 4 ,
234
+ column : 19 ,
235
+ endLine : 4 ,
236
+ endColumn : 22
237
+ } ,
238
+ {
239
+ message :
240
+ 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
241
+ line : 5 ,
242
+ column : 19 ,
243
+ endLine : 5 ,
244
+ endColumn : 23
245
+ } ,
246
+ {
247
+ message :
248
+ 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
249
+ line : 6 ,
250
+ column : 19 ,
251
+ endLine : 6 ,
252
+ endColumn : 24
253
+ }
221
254
]
222
255
} ,
223
256
{
@@ -233,9 +266,30 @@ ruleTester.run('no-deprecated-events-api', rule, {
233
266
` ,
234
267
languageOptions,
235
268
errors : [
236
- 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
237
- 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
238
- 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.'
269
+ {
270
+ message :
271
+ 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
272
+ line : 4 ,
273
+ column : 21 ,
274
+ endLine : 4 ,
275
+ endColumn : 24
276
+ } ,
277
+ {
278
+ message :
279
+ 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
280
+ line : 5 ,
281
+ column : 21 ,
282
+ endLine : 5 ,
283
+ endColumn : 25
284
+ } ,
285
+ {
286
+ message :
287
+ 'The Events api `$on`, `$off` `$once` is deprecated. Using external library instead, for example mitt.' ,
288
+ line : 6 ,
289
+ column : 21 ,
290
+ endLine : 6 ,
291
+ endColumn : 26
292
+ }
239
293
]
240
294
}
241
295
]
0 commit comments