Skip to content

Commit 49352c4

Browse files
committed
Update no-reserved-component-names.js
1 parent 5d6366d commit 49352c4

File tree

1 file changed

+44
-11
lines changed

1 file changed

+44
-11
lines changed

tests/lib/rules/no-reserved-component-names.js

Lines changed: 44 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,10 @@ ruleTester.run('no-reserved-component-names', rule, {
608608
? 'reservedInHtml'
609609
: 'reserved',
610610
data: { name },
611-
line: 3
611+
line: 3,
612+
column: 19,
613+
endLine: 3,
614+
endColumn: 19 + name.length + 2
612615
}
613616
]
614617
})),
@@ -622,7 +625,10 @@ ruleTester.run('no-reserved-component-names', rule, {
622625
? 'reservedInHtml'
623626
: 'reserved',
624627
data: { name },
625-
line: 1
628+
line: 1,
629+
column: 15,
630+
endLine: 1,
631+
endColumn: 15 + name.length + 2
626632
}
627633
]
628634
})),
@@ -636,7 +642,10 @@ ruleTester.run('no-reserved-component-names', rule, {
636642
? 'reservedInHtml'
637643
: 'reserved',
638644
data: { name },
639-
line: 1
645+
line: 1,
646+
column: 15,
647+
endLine: 1,
648+
endColumn: 15 + name.length + 2
640649
}
641650
]
642651
})),
@@ -650,7 +659,10 @@ ruleTester.run('no-reserved-component-names', rule, {
650659
? 'reservedInHtml'
651660
: 'reserved',
652661
data: { name },
653-
line: 1
662+
line: 1,
663+
column: 15,
664+
endLine: 1,
665+
endColumn: 15 + name.length + 2
654666
}
655667
]
656668
})),
@@ -664,7 +676,10 @@ ruleTester.run('no-reserved-component-names', rule, {
664676
? 'reservedInHtml'
665677
: 'reserved',
666678
data: { name },
667-
line: 1
679+
line: 1,
680+
column: 15,
681+
endLine: 1,
682+
endColumn: 15 + name.length + 2
668683
}
669684
]
670685
})),
@@ -682,7 +697,10 @@ ruleTester.run('no-reserved-component-names', rule, {
682697
? 'reservedInHtml'
683698
: 'reserved',
684699
data: { name },
685-
line: 3
700+
line: 3,
701+
column: 13,
702+
endLine: 3,
703+
endColumn: 13 + name.length + 6
686704
}
687705
]
688706
})),
@@ -699,7 +717,10 @@ ruleTester.run('no-reserved-component-names', rule, {
699717
? 'reservedInHtml'
700718
: 'reserved',
701719
data: { name },
702-
line: 1
720+
line: 1,
721+
column: 37,
722+
endLine: 1,
723+
endColumn: 37 + name.length + 2
703724
}
704725
]
705726
})),
@@ -717,7 +738,10 @@ ruleTester.run('no-reserved-component-names', rule, {
717738
? 'reservedInHtml'
718739
: 'reserved',
719740
data: { name },
720-
line: 1
741+
line: 1,
742+
column: 37,
743+
endLine: 1,
744+
endColumn: 37 + name.length + 2
721745
}
722746
]
723747
})),
@@ -734,7 +758,10 @@ ruleTester.run('no-reserved-component-names', rule, {
734758
{
735759
messageId: 'reservedInVue',
736760
data: { name },
737-
line: 3
761+
line: 3,
762+
column: 19,
763+
endLine: 3,
764+
endColumn: 19 + name.length + 2
738765
}
739766
]
740767
})),
@@ -751,7 +778,10 @@ ruleTester.run('no-reserved-component-names', rule, {
751778
{
752779
messageId: 'reservedInVue',
753780
data: { name },
754-
line: 3
781+
line: 3,
782+
column: 19,
783+
endLine: 3,
784+
endColumn: 19 + name.length + 2
755785
}
756786
]
757787
})),
@@ -768,7 +798,10 @@ ruleTester.run('no-reserved-component-names', rule, {
768798
{
769799
messageId: 'reservedInVue3',
770800
data: { name },
771-
line: 3
801+
line: 3,
802+
column: 19,
803+
endLine: 3,
804+
endColumn: 19 + name.length + 2
772805
}
773806
]
774807
}))

0 commit comments

Comments
 (0)