Skip to content

Commit f6aa0a7

Browse files
authored
test(max-template-depth): make tests more strict (#2850)
1 parent 0d439f6 commit f6aa0a7

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

tests/lib/rules/max-template-depth.js

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ tester.run('max-template-depth', rule, {
9595
{
9696
message:
9797
'Element is nested too deeply (depth of 4, maximum allowed is 3).',
98-
line: 6
98+
line: 6,
99+
column: 13,
100+
endLine: 6,
101+
endColumn: 20
99102
}
100103
]
101104
},
@@ -120,7 +123,10 @@ tester.run('max-template-depth', rule, {
120123
{
121124
message:
122125
'Element is nested too deeply (depth of 4, maximum allowed is 3).',
123-
line: 9
126+
line: 9,
127+
column: 13,
128+
endLine: 9,
129+
endColumn: 19
124130
}
125131
]
126132
},
@@ -148,19 +154,25 @@ tester.run('max-template-depth', rule, {
148154
message:
149155
'Element is nested too deeply (depth of 4, maximum allowed is 3).',
150156
line: 9,
151-
endLine: 12
157+
endLine: 12,
158+
column: 13,
159+
endColumn: 11
152160
},
153161
{
154162
message:
155163
'Element is nested too deeply (depth of 5, maximum allowed is 3).',
156164
line: 10,
157-
endLine: 10
165+
endLine: 10,
166+
column: 15,
167+
endColumn: 22
158168
},
159169
{
160170
message:
161171
'Element is nested too deeply (depth of 5, maximum allowed is 3).',
162172
line: 11,
163-
endLine: 12
173+
endLine: 12,
174+
column: 13,
175+
endColumn: 11
164176
}
165177
]
166178
}

0 commit comments

Comments
 (0)