Skip to content

Commit 52bd588

Browse files
authored
test(no-child-content): make tests more strict (#2863)
1 parent 14a9e8e commit 52bd588

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/lib/rules/no-child-content.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ ruleTester.run('no-child-content', rule, {
7474
{
7575
message:
7676
'Child content is disallowed because it will be overwritten by the v-html directive.',
77+
line: 1,
7778
column: 29,
79+
endLine: 1,
7880
endColumn: 32,
7981
suggestions: [
8082
{
@@ -93,7 +95,9 @@ ruleTester.run('no-child-content', rule, {
9395
{
9496
message:
9597
'Child content is disallowed because it will be overwritten by the v-html directive.',
98+
line: 1,
9699
column: 29,
100+
endLine: 1,
97101
endColumn: 38,
98102
suggestions: [
99103
{
@@ -112,7 +116,9 @@ ruleTester.run('no-child-content', rule, {
112116
{
113117
message:
114118
'Child content is disallowed because it will be overwritten by the v-html directive.',
119+
line: 1,
115120
column: 29,
121+
endLine: 1,
116122
endColumn: 37,
117123
suggestions: [
118124
{
@@ -131,7 +137,9 @@ ruleTester.run('no-child-content', rule, {
131137
{
132138
message:
133139
'Child content is disallowed because it will be overwritten by the v-html directive.',
140+
line: 1,
134141
column: 29,
142+
endLine: 1,
135143
endColumn: 41,
136144
suggestions: [
137145
{
@@ -183,7 +191,9 @@ ruleTester.run('no-child-content', rule, {
183191
{
184192
message:
185193
'Child content is disallowed because it will be overwritten by the v-text directive.',
194+
line: 1,
186195
column: 29,
196+
endLine: 1,
187197
endColumn: 32,
188198
suggestions: [
189199
{
@@ -203,7 +213,9 @@ ruleTester.run('no-child-content', rule, {
203213
{
204214
message:
205215
'Child content is disallowed because it will be overwritten by the v-t directive.',
216+
line: 1,
206217
column: 26,
218+
endLine: 1,
207219
endColumn: 29,
208220
suggestions: [
209221
{
@@ -223,7 +235,9 @@ ruleTester.run('no-child-content', rule, {
223235
{
224236
message:
225237
'Child content is disallowed because it will be overwritten by the v-html directive.',
238+
line: 1,
226239
column: 29,
240+
endLine: 1,
227241
endColumn: 32,
228242
suggestions: [
229243
{

0 commit comments

Comments
 (0)