Skip to content

Commit 13ab0ec

Browse files
authored
test: add error locations to no-label-var (#21098)
1 parent a99906f commit 13ab0ec

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎tests/lib/rules/no-label-var.js‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ ruleTester.run("no-label-var", rule, {
2929
errors: [
3030
{
3131
messageId: "identifierClashWithLabel",
32+
line: 1,
33+
column: 31,
34+
endLine: 1,
35+
endColumn: 54,
3236
},
3337
],
3438
},
@@ -37,6 +41,10 @@ ruleTester.run("no-label-var", rule, {
3741
errors: [
3842
{
3943
messageId: "identifierClashWithLabel",
44+
line: 1,
45+
column: 31,
46+
endLine: 1,
47+
endColumn: 54,
4048
},
4149
],
4250
},
@@ -45,6 +53,10 @@ ruleTester.run("no-label-var", rule, {
4553
errors: [
4654
{
4755
messageId: "identifierClashWithLabel",
56+
line: 1,
57+
column: 19,
58+
endLine: 1,
59+
endColumn: 42,
4860
},
4961
],
5062
},

0 commit comments

Comments
 (0)