Skip to content

Commit 7d9713e

Browse files
committed
remove endColumn from invalid test cases
It seems to always throw errors in ESLint v3
1 parent af75212 commit 7d9713e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/lib/rules/jsx-no-leaked-zero.js

-12
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
107107
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
108108
line: 3,
109109
column: 22,
110-
endColumn: 27,
111110
}],
112111
output: `
113112
const Component = ({ count, title }) => {
@@ -126,7 +125,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
126125
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
127126
line: 3,
128127
column: 22,
129-
endColumn: 27,
130128
}],
131129
output: `
132130
const Component = ({ count }) => {
@@ -145,7 +143,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
145143
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
146144
line: 3,
147145
column: 22,
148-
endColumn: 37,
149146
}],
150147
output: `
151148
const Component = ({ elements }) => {
@@ -164,7 +161,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
164161
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
165162
line: 3,
166163
column: 22,
167-
endColumn: 54,
168164
}],
169165
output: `
170166
const Component = ({ nestedCollection }) => {
@@ -183,7 +179,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
183179
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
184180
line: 3,
185181
column: 22,
186-
endColumn: 33,
187182
}],
188183
output: `
189184
const Component = ({ elements }) => {
@@ -202,7 +197,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
202197
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
203198
line: 3,
204199
column: 23,
205-
endColumn: 41,
206200
}],
207201
output: `
208202
const Component = ({ numberA, numberB }) => {
@@ -222,7 +216,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
222216
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
223217
line: 3,
224218
column: 22,
225-
endColumn: 27,
226219
}],
227220
output: `
228221
const Component = ({ count, title }) => {
@@ -240,7 +233,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
240233
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
241234
line: 3,
242235
column: 22,
243-
endColumn: 27,
244236
}],
245237
output: `
246238
const Component = ({ count }) => {
@@ -258,7 +250,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
258250
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
259251
line: 3,
260252
column: 22,
261-
endColumn: 37,
262253
}],
263254
output: `
264255
const Component = ({ elements }) => {
@@ -276,7 +267,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
276267
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
277268
line: 3,
278269
column: 22,
279-
endColumn: 54,
280270
}],
281271
output: `
282272
const Component = ({ nestedCollection }) => {
@@ -294,7 +284,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
294284
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
295285
line: 3,
296286
column: 22,
297-
endColumn: 33,
298287
}],
299288
output: `
300289
const Component = ({ elements }) => {
@@ -313,7 +302,6 @@ ruleTester.run('jsx-no-leaked-zero', rule, {
313302
message: 'Potential numeric evaluation that ends up in leaked zero to the DOM',
314303
line: 3,
315304
column: 23,
316-
endColumn: 41,
317305
}],
318306
output: `
319307
const Component = ({ numberA, numberB }) => {

0 commit comments

Comments
 (0)