@@ -139,7 +139,10 @@ ruleTester.run('no-deprecated-events-api', rule, {
139139 {
140140 message :
141141 '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
143146 }
144147 ]
145148 } ,
@@ -157,7 +160,10 @@ ruleTester.run('no-deprecated-events-api', rule, {
157160 {
158161 message :
159162 '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
161167 }
162168 ]
163169 } ,
@@ -177,7 +183,10 @@ ruleTester.run('no-deprecated-events-api', rule, {
177183 {
178184 message :
179185 '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
181190 }
182191 ]
183192 } ,
@@ -198,7 +207,10 @@ ruleTester.run('no-deprecated-events-api', rule, {
198207 {
199208 message :
200209 '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
202214 }
203215 ]
204216 } ,
@@ -215,9 +227,30 @@ ruleTester.run('no-deprecated-events-api', rule, {
215227 ` ,
216228 languageOptions,
217229 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+ }
221254 ]
222255 } ,
223256 {
@@ -233,9 +266,30 @@ ruleTester.run('no-deprecated-events-api', rule, {
233266 ` ,
234267 languageOptions,
235268 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+ }
239293 ]
240294 }
241295 ]
0 commit comments