Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 79a1b42

Browse files
committed
test(camelcase): make tests more strict
1 parent d46c0a8 commit 79a1b42

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)

AltStyle によって変換されたページ (->オリジナル) /