Skip to content

Commit 178d2a9

Browse files
committed
test: prop-name-casing
1 parent 4d4935b commit 178d2a9

File tree

1 file changed

+84
-21
lines changed

1 file changed

+84
-21
lines changed

tests/lib/rules/prop-name-casing.js

Lines changed: 84 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,10 @@ ruleTester.run('prop-name-casing', rule, {
406406
errors: [
407407
{
408408
message: 'Prop "greeting_text" is not in camelCase.',
409-
line: 4
409+
line: 4,
410+
column: 13,
411+
endLine: 4,
412+
endColumn: 34
410413
}
411414
]
412415
},
@@ -424,7 +427,10 @@ ruleTester.run('prop-name-casing', rule, {
424427
errors: [
425428
{
426429
message: 'Prop "greeting_text" is not in camelCase.',
427-
line: 4
430+
line: 4,
431+
column: 13,
432+
endLine: 4,
433+
endColumn: 34
428434
}
429435
]
430436
},
@@ -440,7 +446,10 @@ ruleTester.run('prop-name-casing', rule, {
440446
errors: [
441447
{
442448
message: 'Prop "greeting_text" is not in camelCase.',
443-
line: 3
449+
line: 3,
450+
column: 19,
451+
endLine: 3,
452+
endColumn: 34
444453
}
445454
]
446455
},
@@ -458,7 +467,10 @@ ruleTester.run('prop-name-casing', rule, {
458467
errors: [
459468
{
460469
message: 'Prop "greetingText" is not in snake_case.',
461-
line: 4
470+
line: 4,
471+
column: 13,
472+
endLine: 4,
473+
endColumn: 33
462474
}
463475
]
464476
},
@@ -476,7 +488,10 @@ ruleTester.run('prop-name-casing', rule, {
476488
errors: [
477489
{
478490
message: 'Prop "greeting-text" is not in camelCase.',
479-
line: 4
491+
line: 4,
492+
column: 13,
493+
endLine: 4,
494+
endColumn: 36
480495
}
481496
]
482497
},
@@ -494,7 +509,10 @@ ruleTester.run('prop-name-casing', rule, {
494509
errors: [
495510
{
496511
message: 'Prop "greeting-text" is not in snake_case.',
497-
line: 4
512+
line: 4,
513+
column: 13,
514+
endLine: 4,
515+
endColumn: 36
498516
}
499517
]
500518
},
@@ -511,7 +529,10 @@ ruleTester.run('prop-name-casing', rule, {
511529
errors: [
512530
{
513531
message: 'Prop "greeting_text" is not in camelCase.',
514-
line: 4
532+
line: 4,
533+
column: 13,
534+
endLine: 4,
535+
endColumn: 36
515536
}
516537
]
517538
},
@@ -529,7 +550,10 @@ ruleTester.run('prop-name-casing', rule, {
529550
errors: [
530551
{
531552
message: 'Prop "greeting-text" is not in camelCase.',
532-
line: 4
553+
line: 4,
554+
column: 13,
555+
endLine: 4,
556+
endColumn: 38
533557
}
534558
]
535559
},
@@ -547,7 +571,10 @@ ruleTester.run('prop-name-casing', rule, {
547571
errors: [
548572
{
549573
message: 'Prop "greeting_text" is not in camelCase.',
550-
line: 4
574+
line: 4,
575+
column: 13,
576+
endLine: 4,
577+
endColumn: 26
551578
}
552579
]
553580
},
@@ -564,7 +591,10 @@ ruleTester.run('prop-name-casing', rule, {
564591
errors: [
565592
{
566593
message: 'Prop "abc-123-def" is not in camelCase.',
567-
line: 4
594+
line: 4,
595+
column: 13,
596+
endLine: 4,
597+
endColumn: 34
568598
}
569599
]
570600
},
@@ -582,7 +612,10 @@ ruleTester.run('prop-name-casing', rule, {
582612
errors: [
583613
{
584614
message: 'Prop "greeting-text" is not in camelCase.',
585-
line: 4
615+
line: 4,
616+
column: 13,
617+
endLine: 4,
618+
endColumn: 40
586619
}
587620
]
588621
},
@@ -653,7 +686,10 @@ ruleTester.run('prop-name-casing', rule, {
653686
errors: [
654687
{
655688
message: 'Prop "greeting_text" is not in camelCase.',
656-
line: 4
689+
line: 4,
690+
column: 9,
691+
endLine: 4,
692+
endColumn: 30
657693
}
658694
]
659695
},
@@ -671,7 +707,10 @@ ruleTester.run('prop-name-casing', rule, {
671707
errors: [
672708
{
673709
message: 'Prop "greeting_text" is not in camelCase.',
674-
line: 3
710+
line: 3,
711+
column: 20,
712+
endLine: 3,
713+
endColumn: 35
675714
}
676715
]
677716
},
@@ -701,7 +740,10 @@ ruleTester.run('prop-name-casing', rule, {
701740
errors: [
702741
{
703742
message: 'Prop "greeting_text" is not in camelCase.',
704-
line: 4
743+
line: 4,
744+
column: 15,
745+
endLine: 4,
746+
endColumn: 36
705747
}
706748
]
707749
}
@@ -722,11 +764,17 @@ ruleTester.run('prop-name-casing', rule, {
722764
errors: [
723765
{
724766
message: 'Prop "notIgnored_prop" is not in camelCase.',
725-
line: 4
767+
line: 4,
768+
column: 13,
769+
endLine: 4,
770+
endColumn: 36
726771
},
727772
{
728773
message: 'Prop "other-pattern" is not in camelCase.',
729-
line: 5
774+
line: 5,
775+
column: 13,
776+
endLine: 5,
777+
endColumn: 36
730778
}
731779
]
732780
},
@@ -742,11 +790,17 @@ ruleTester.run('prop-name-casing', rule, {
742790
errors: [
743791
{
744792
message: 'Prop "notIgnored_prop" is not in camelCase.',
745-
line: 3
793+
line: 3,
794+
column: 19,
795+
endLine: 3,
796+
endColumn: 36
746797
},
747798
{
748799
message: 'Prop "pattern_invalid" is not in camelCase.',
749-
line: 3
800+
line: 3,
801+
column: 38,
802+
endLine: 3,
803+
endColumn: 55
750804
}
751805
]
752806
},
@@ -761,15 +815,24 @@ ruleTester.run('prop-name-casing', rule, {
761815
errors: [
762816
{
763817
message: 'Prop "snake_case" is not in camelCase.',
764-
line: 5
818+
line: 5,
819+
column: 19,
820+
endLine: 5,
821+
endColumn: 24
765822
},
766823
{
767824
message: 'Prop "kebab-case" is not in camelCase.',
768-
line: 5
825+
line: 5,
826+
column: 19,
827+
endLine: 5,
828+
endColumn: 24
769829
},
770830
{
771831
message: 'Prop "PascalCase" is not in camelCase.',
772-
line: 5
832+
line: 5,
833+
column: 19,
834+
endLine: 5,
835+
endColumn: 24
773836
}
774837
],
775838
...getTypeScriptFixtureTestOptions()

0 commit comments

Comments
 (0)