Skip to content

Commit 26432d7

Browse files
authored
test(camelcase): make tests more strict (#2810)
1 parent 3275518 commit 26432d7

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

tests/lib/rules/camelcase.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ tester.run('camelcase', rule, {
3434
errors: [
3535
{
3636
message: "Identifier 'my_pref' is not in camel case.",
37-
line: 3
37+
line: 3,
38+
column: 25,
39+
endLine: 3,
40+
endColumn: 32
3841
}
3942
]
4043
},
@@ -48,7 +51,10 @@ tester.run('camelcase', rule, {
4851
errors: [
4952
{
5053
message: "Identifier 'my_pref' is not in camel case.",
51-
line: 4
54+
line: 4,
55+
column: 21,
56+
endLine: 4,
57+
endColumn: 28
5258
}
5359
]
5460
},
@@ -62,7 +68,10 @@ tester.run('camelcase', rule, {
6268
errors: [
6369
{
6470
message: "Identifier 'my_pref' is not in camel case.",
65-
line: 4
71+
line: 4,
72+
column: 21,
73+
endLine: 4,
74+
endColumn: 28
6675
}
6776
]
6877
}

0 commit comments

Comments
 (0)