Skip to content

Commit 468789b

Browse files
authored
test(arrow-spacing): make tests more strict (#2801)
1 parent 5bde25a commit 468789b

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

tests/lib/rules/arrow-spacing.js

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,17 @@ tester.run('arrow-spacing', rule, {
4848
errors: [
4949
{
5050
message: 'Missing space before =>.',
51-
line: 3
51+
line: 3,
52+
column: 24,
53+
endLine: 3,
54+
endColumn: 25
5255
},
5356
{
5457
message: 'Missing space after =>.',
55-
line: 3
58+
line: 3,
59+
column: 27,
60+
endLine: 3,
61+
endColumn: 28
5662
}
5763
]
5864
},
@@ -68,11 +74,17 @@ tester.run('arrow-spacing', rule, {
6874
errors: [
6975
{
7076
message: 'Missing space before =>.',
71-
line: 3
77+
line: 3,
78+
column: 25,
79+
endLine: 3,
80+
endColumn: 26
7281
},
7382
{
7483
message: 'Missing space after =>.',
75-
line: 3
84+
line: 3,
85+
column: 28,
86+
endLine: 3,
87+
endColumn: 29
7688
}
7789
]
7890
},
@@ -94,11 +106,17 @@ tester.run('arrow-spacing', rule, {
94106
errors: [
95107
{
96108
message: 'Missing space before =>.',
97-
line: 4
109+
line: 4,
110+
column: 25,
111+
endLine: 4,
112+
endColumn: 26
98113
},
99114
{
100115
message: 'Missing space after =>.',
101-
line: 4
116+
line: 4,
117+
column: 28,
118+
endLine: 4,
119+
endColumn: 29
102120
}
103121
]
104122
},
@@ -115,11 +133,17 @@ tester.run('arrow-spacing', rule, {
115133
errors: [
116134
{
117135
message: 'Unexpected space before =>.',
118-
line: 3
136+
line: 3,
137+
column: 24,
138+
endLine: 3,
139+
endColumn: 25
119140
},
120141
{
121142
message: 'Unexpected space after =>.',
122-
line: 3
143+
line: 3,
144+
column: 29,
145+
endLine: 3,
146+
endColumn: 30
123147
}
124148
]
125149
}

0 commit comments

Comments
 (0)