Skip to content

Commit

Permalink
Bump coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed Jan 10, 2024
1 parent 90bcd30 commit e3ab27a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/lib/rules/jsx-no-target-blank.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@ ruleTester.run('jsx-no-target-blank', rule, {
{
code: '<a href={href} target={isExternal ? "_blank" : undefined} rel={isExternal ? "noopener noreferrer" : undefined} />',
},
{
code: '<form action={action} />',
options: [{ forms: true }],
},
{
code: '<form action={action} {...spread} />',
options: [{ forms: true }],
},
]),
invalid: parsers.all([
{
Expand Down Expand Up @@ -412,5 +420,20 @@ ruleTester.run('jsx-no-target-blank', rule, {
options: [{ allowReferrer: true }],
errors: allowReferrerErrors,
},
{
code: '<form action={action} target="_blank" />',
options: [{ allowReferrer: true, forms: true }],
errors: allowReferrerErrors,
},
{
code: '<form action={action} target="_blank" />',
options: [{ forms: true }],
errors: defaultErrors,
},
{
code: '<form action={action} {...spread} />',
options: [{ forms: true, warnOnSpreadAttributes: true }],
errors: defaultErrors,
},
]),
});

0 comments on commit e3ab27a

Please sign in to comment.