Skip to content

Commit

Permalink
add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonjuan committed Jan 1, 2025
1 parent cb9f561 commit 801c434
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/eslint-plugin/tests/rules/no-nested-interactive.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,28 @@ ruleTester.run("no-nested-interactive", rule, {
},
],
},
{
code: "<button><div></div><div><iframe src='https:...'></iframe></div></button>",
errors: [
{
messageId: "unexpected",
data: {
tag: "button",
},
},
],
},
{
code: "<label><label>nesting label</label></label>",
errors: [
{
messageId: "unexpected",
data: {
tag: "label",
},
},
],
},
],
});

Expand Down

0 comments on commit 801c434

Please sign in to comment.