Skip to content

Commit

Permalink
fix: failing testcase moved testcase to valid since its valid
Browse files Browse the repository at this point in the history
  • Loading branch information
akulsr0 committed Oct 18, 2022
1 parent 8e55e8d commit 590bde4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/lib/rules/jsx-no-target-blank.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ ruleTester.run('jsx-no-target-blank', rule, {
{
code: '<a href={href} target={isSelf ? "_self" : ""} rel={isSelf ? undefined : ""} />',
},
{
code: '<a href={href} target={isExternal ? "_blank" : undefined} rel={isExternal ? "noopener noreferrer" : undefined} />',
},
]),
invalid: parsers.all([
{
Expand Down Expand Up @@ -387,10 +390,6 @@ ruleTester.run('jsx-no-target-blank', rule, {
code: '<a href={href} target="_blank" rel={isExternal ? "undefined" : "noopener"} />',
errors: defaultErrors,
},
{
code: '<a href={href} target={isExternal ? "_blank" : undefined} rel={isExternal ? "noopener noreferrer" : undefined} />',
errors: defaultErrors,
},
{
code: '<a href={href} target={isExternal ? "_blank" : undefined} rel={isExternal ? undefined : "noopener noreferrer"} />',
errors: defaultErrors,
Expand Down

0 comments on commit 590bde4

Please sign in to comment.