Skip to content

Commit fe0a4e4

Browse files
authored
test(no-potential-component-option-typo): make tests more strict (#2902)
1 parent 97f58db commit fe0a4e4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/lib/rules/no-potential-component-option-typo.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ tester.run('no-potential-component-option-typo', rule, {
183183
message: "'dat' may be a typo, which is similar to option [data].",
184184
line: 4,
185185
column: 9,
186+
endLine: 4,
187+
endColumn: 12,
186188
suggestions: [
187189
{
188190
desc: `Replace property 'dat' to 'data'`,
@@ -200,6 +202,8 @@ tester.run('no-potential-component-option-typo', rule, {
200202
message: `'method' may be a typo, which is similar to option [methods].`,
201203
line: 5,
202204
column: 9,
205+
endLine: 5,
206+
endColumn: 15,
203207
suggestions: [
204208
{
205209
desc: `Replace property 'method' to 'methods'`,
@@ -235,6 +239,8 @@ tester.run('no-potential-component-option-typo', rule, {
235239
message: "'dat' may be a typo, which is similar to option [data].",
236240
line: 4,
237241
column: 9,
242+
endLine: 4,
243+
endColumn: 12,
238244
suggestions: [
239245
{
240246
desc: `Replace property 'dat' to 'data'`,
@@ -253,6 +259,8 @@ tester.run('no-potential-component-option-typo', rule, {
253259
message: `'method' may be a typo, which is similar to option [methods].`,
254260
line: 5,
255261
column: 9,
262+
endLine: 5,
263+
endColumn: 15,
256264
suggestions: [
257265
{
258266
desc: `Replace property 'method' to 'methods'`,
@@ -271,6 +279,8 @@ tester.run('no-potential-component-option-typo', rule, {
271279
message: `'custo' may be a typo, which is similar to option [custom].`,
272280
line: 6,
273281
column: 9,
282+
endLine: 6,
283+
endColumn: 14,
274284
suggestions: [
275285
{
276286
desc: `Replace property 'custo' to 'custom'`,
@@ -303,6 +313,8 @@ tester.run('no-potential-component-option-typo', rule, {
303313
message: "'dat' may be a typo, which is similar to option [data].",
304314
line: 4,
305315
column: 9,
316+
endLine: 4,
317+
endColumn: 12,
306318
suggestions: [
307319
{
308320
desc: `Replace property 'dat' to 'data'`,
@@ -320,6 +332,8 @@ tester.run('no-potential-component-option-typo', rule, {
320332
message: `'method' may be a typo, which is similar to option [methods].`,
321333
line: 5,
322334
column: 9,
335+
endLine: 5,
336+
endColumn: 15,
323337
suggestions: [
324338
{
325339
desc: `Replace property 'method' to 'methods'`,
@@ -352,6 +366,8 @@ tester.run('no-potential-component-option-typo', rule, {
352366
message: "'dat' may be a typo, which is similar to option [data].",
353367
line: 4,
354368
column: 9,
369+
endLine: 4,
370+
endColumn: 12,
355371
suggestions: [
356372
{
357373
desc: `Replace property 'dat' to 'data'`,
@@ -371,6 +387,8 @@ tester.run('no-potential-component-option-typo', rule, {
371387
"'beforeRouteEntr' may be a typo, which is similar to option [beforeRouteEnter].",
372388
line: 5,
373389
column: 9,
390+
endLine: 5,
391+
endColumn: 24,
374392
suggestions: [
375393
{
376394
desc: `Replace property 'beforeRouteEntr' to 'beforeRouteEnter'`,
@@ -389,6 +407,8 @@ tester.run('no-potential-component-option-typo', rule, {
389407
message: `'method' may be a typo, which is similar to option [methods].`,
390408
line: 6,
391409
column: 9,
410+
endLine: 6,
411+
endColumn: 15,
392412
suggestions: [
393413
{
394414
desc: `Replace property 'method' to 'methods'`,
@@ -420,6 +440,8 @@ tester.run('no-potential-component-option-typo', rule, {
420440
message: `'method' may be a typo, which is similar to option [methods,data].`,
421441
line: 4,
422442
column: 9,
443+
endLine: 4,
444+
endColumn: 15,
423445
suggestions: [
424446
{
425447
desc: `Replace property 'method' to 'methods'`,

0 commit comments

Comments
 (0)