Skip to content

Commit 248c2ca

Browse files
committed
Remove endLine/Column tests: not supported in ESLint 3
1 parent a5ded4d commit 248c2ca

File tree

1 file changed

+21
-63
lines changed

1 file changed

+21
-63
lines changed

tests/lib/rules/no-deprecated.js

+21-63
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,7 @@ ruleTester.run('no-deprecated', rule, {
226226
),
227227
type: 'Identifier',
228228
line: 3,
229-
column: 11,
230-
endLine: 3,
231-
endColumn: 29
229+
column: 11
232230
},
233231
{
234232
message: errorMessage(
@@ -237,19 +235,15 @@ ruleTester.run('no-deprecated', rule, {
237235
),
238236
type: 'Identifier',
239237
line: 4,
240-
column: 11,
241-
endLine: 4,
242-
endColumn: 36
238+
column: 11
243239
},
244240
{
245241
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
246242
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
247243
),
248244
type: 'Identifier',
249245
line: 5,
250-
column: 11,
251-
endLine: 5,
252-
endColumn: 30
246+
column: 11
253247
}
254248
]
255249
},
@@ -271,9 +265,7 @@ ruleTester.run('no-deprecated', rule, {
271265
),
272266
type: 'Identifier',
273267
line: 4,
274-
column: 13,
275-
endLine: 4,
276-
endColumn: 31
268+
column: 13
277269
},
278270
{
279271
message: errorMessage(
@@ -282,19 +274,15 @@ ruleTester.run('no-deprecated', rule, {
282274
),
283275
type: 'Identifier',
284276
line: 5,
285-
column: 13,
286-
endLine: 5,
287-
endColumn: 38
277+
column: 13
288278
},
289279
{
290280
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
291281
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
292282
),
293283
type: 'Identifier',
294284
line: 6,
295-
column: 13,
296-
endLine: 6,
297-
endColumn: 32
285+
column: 13
298286
}
299287
]
300288
},
@@ -314,9 +302,7 @@ ruleTester.run('no-deprecated', rule, {
314302
),
315303
type: 'Identifier',
316304
line: 3,
317-
column: 11,
318-
endLine: 3,
319-
endColumn: 29
305+
column: 11
320306
},
321307
{
322308
message: errorMessage(
@@ -325,19 +311,15 @@ ruleTester.run('no-deprecated', rule, {
325311
),
326312
type: 'Identifier',
327313
line: 4,
328-
column: 11,
329-
endLine: 4,
330-
endColumn: 36
314+
column: 11
331315
},
332316
{
333317
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
334318
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
335319
),
336320
type: 'Identifier',
337321
line: 5,
338-
column: 11,
339-
endLine: 5,
340-
endColumn: 30
322+
column: 11
341323
}
342324
]
343325
},
@@ -357,9 +339,7 @@ ruleTester.run('no-deprecated', rule, {
357339
),
358340
type: 'Identifier',
359341
line: 3,
360-
column: 11,
361-
endLine: 3,
362-
endColumn: 29
342+
column: 11
363343
},
364344
{
365345
message: errorMessage(
@@ -368,19 +348,15 @@ ruleTester.run('no-deprecated', rule, {
368348
),
369349
type: 'Identifier',
370350
line: 4,
371-
column: 11,
372-
endLine: 4,
373-
endColumn: 36
351+
column: 11
374352
},
375353
{
376354
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
377355
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
378356
),
379357
type: 'Identifier',
380358
line: 5,
381-
column: 11,
382-
endLine: 5,
383-
endColumn: 30
359+
column: 11
384360
}
385361
]
386362
},
@@ -400,9 +376,7 @@ ruleTester.run('no-deprecated', rule, {
400376
),
401377
type: 'Identifier',
402378
line: 3,
403-
column: 11,
404-
endLine: 3,
405-
endColumn: 29
379+
column: 11
406380
},
407381
{
408382
message: errorMessage(
@@ -411,19 +385,15 @@ ruleTester.run('no-deprecated', rule, {
411385
),
412386
type: 'Identifier',
413387
line: 4,
414-
column: 11,
415-
endLine: 4,
416-
endColumn: 36
388+
column: 11
417389
},
418390
{
419391
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
420392
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
421393
),
422394
type: 'Identifier',
423395
line: 5,
424-
column: 11,
425-
endLine: 5,
426-
endColumn: 30
396+
column: 11
427397
}
428398
]
429399
},
@@ -443,9 +413,7 @@ ruleTester.run('no-deprecated', rule, {
443413
),
444414
type: 'Identifier',
445415
line: 3,
446-
column: 11,
447-
endLine: 3,
448-
endColumn: 29
416+
column: 11
449417
},
450418
{
451419
message: errorMessage(
@@ -454,19 +422,15 @@ ruleTester.run('no-deprecated', rule, {
454422
),
455423
type: 'Identifier',
456424
line: 4,
457-
column: 11,
458-
endLine: 4,
459-
endColumn: 36
425+
column: 11
460426
},
461427
{
462428
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
463429
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
464430
),
465431
type: 'Identifier',
466432
line: 5,
467-
column: 11,
468-
endLine: 5,
469-
endColumn: 30
433+
column: 11
470434
}
471435
]
472436
},
@@ -487,9 +451,7 @@ ruleTester.run('no-deprecated', rule, {
487451
),
488452
type: 'Identifier',
489453
line: 4,
490-
column: 11,
491-
endLine: 4,
492-
endColumn: 29
454+
column: 11
493455
},
494456
{
495457
message: errorMessage(
@@ -498,19 +460,15 @@ ruleTester.run('no-deprecated', rule, {
498460
),
499461
type: 'Identifier',
500462
line: 5,
501-
column: 11,
502-
endLine: 5,
503-
endColumn: 36
463+
column: 11
504464
},
505465
{
506466
message: errorMessage('componentWillUpdate', '16.3.0', 'UNSAFE_componentWillUpdate',
507467
'https://reactjs.org/docs/react-component.html#unsafe_componentwillupdate'
508468
),
509469
type: 'Identifier',
510470
line: 6,
511-
column: 11,
512-
endLine: 6,
513-
endColumn: 30
471+
column: 11
514472
}
515473
]
516474
}

0 commit comments

Comments
 (0)