Skip to content

Commit 3275518

Browse files
authored
test(brace-style): make tests more strict (#2809)
1 parent 924d1e0 commit 3275518

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

tests/lib/rules/brace-style.js

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ tester.run('brace-style', rule, {
4040
{
4141
message:
4242
'Opening curly brace does not appear on the same line as controlling statement.',
43-
line: 4
43+
line: 4,
44+
column: 11,
45+
endLine: 4,
46+
endColumn: 12
4447
}
4548
]
4649
},
@@ -58,12 +61,18 @@ tester.run('brace-style', rule, {
5861
errors: [
5962
{
6063
message: 'Statement inside of curly braces should be on next line.',
61-
line: 3
64+
line: 3,
65+
column: 38,
66+
endLine: 3,
67+
endColumn: 39
6268
},
6369
{
6470
message:
6571
'Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.',
66-
line: 3
72+
line: 3,
73+
column: 53,
74+
endLine: 3,
75+
endColumn: 54
6776
}
6877
]
6978
},
@@ -74,11 +83,19 @@ return(1)
7483
})()" /></template>`,
7584
errors: [
7685
{
77-
message: 'Statement inside of curly braces should be on next line.'
86+
message: 'Statement inside of curly braces should be on next line.',
87+
line: 1,
88+
column: 57,
89+
endLine: 1,
90+
endColumn: 58
7891
},
7992
{
8093
message:
81-
'Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.'
94+
'Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.',
95+
line: 1,
96+
column: 67,
97+
endLine: 1,
98+
endColumn: 68
8299
}
83100
]
84101
}

0 commit comments

Comments
 (0)