@@ -272,14 +272,9 @@ ruleTester.run('anchor-is-valid', rule, {
272
272
options : noHrefAspect ,
273
273
} ,
274
274
275
- // CUSTOM COMPONENTS AND SPECIALLINK AND ASPECT
275
+ // CUSTOM COMPONENTS AND SPECIAL LINK AND ASPECT
276
276
{ code : '<Anchor hrefLeft={undefined} />' , options : componentsAndSpecialLinkAndInvalidHrefAspect } ,
277
277
{ code : '<Anchor hrefLeft={null} />' , options : componentsAndSpecialLinkAndInvalidHrefAspect } ,
278
- { code : '<Anchor hrefLeft={undefined} />' , options : componentsAndSpecialLinkAndInvalidHrefAspect } ,
279
- { code : '<Anchor hrefLeft={null} />' , options : componentsAndSpecialLinkAndInvalidHrefAspect } ,
280
- { code : '<Anchor hrefLeft={undefined} />' , options : componentsAndSpecialLinkAndInvalidHrefAspect } ,
281
- { code : '<Anchor hrefLeft={null} />' , options : componentsAndSpecialLinkAndInvalidHrefAspect } ,
282
-
283
278
) ) . map ( parserOptionsMapper ) ,
284
279
invalid : parsers . all ( [ ] . concat (
285
280
// DEFAULT ELEMENT 'a' TESTS
@@ -372,7 +367,7 @@ ruleTester.run('anchor-is-valid', rule, {
372
367
options : specialLink ,
373
368
} ,
374
369
375
- // CUSTOM BOTH COMPONENTS AND SPECIALLINK TESTS
370
+ // CUSTOM BOTH COMPONENTS AND SPECIAL LINK TESTS
376
371
// NO HREF
377
372
{ code : '<Anchor Anchor={undefined} />' , errors : [ noHrefexpectedError ] , options : componentsAndSpecialLink } ,
378
373
{ code : '<Anchor hrefLeft={null} />' , errors : [ noHrefexpectedError ] , options : componentsAndSpecialLink } ,
@@ -522,27 +517,7 @@ ruleTester.run('anchor-is-valid', rule, {
522
517
errors : [ invalidHrefexpectedError ] ,
523
518
} ,
524
519
525
- // CUSTOM COMPONENTS AND SPECIALLINK AND ASPECT
526
- {
527
- code : '<Anchor hrefLeft={undefined} />' ,
528
- options : componentsAndSpecialLinkAndNoHrefAspect ,
529
- errors : [ noHrefexpectedError ] ,
530
- } ,
531
- {
532
- code : '<Anchor hrefLeft={null} />' ,
533
- options : componentsAndSpecialLinkAndNoHrefAspect ,
534
- errors : [ noHrefexpectedError ] ,
535
- } ,
536
- {
537
- code : '<Anchor hrefLeft={undefined} />' ,
538
- options : componentsAndSpecialLinkAndNoHrefAspect ,
539
- errors : [ noHrefexpectedError ] ,
540
- } ,
541
- {
542
- code : '<Anchor hrefLeft={null} />' ,
543
- options : componentsAndSpecialLinkAndNoHrefAspect ,
544
- errors : [ noHrefexpectedError ] ,
545
- } ,
520
+ // CUSTOM COMPONENTS AND SPECIAL LINK AND ASPECT
546
521
{
547
522
code : '<Anchor hrefLeft={undefined} />' ,
548
523
options : componentsAndSpecialLinkAndNoHrefAspect ,
0 commit comments