From 801c4349a91e4cc860c18086ae18e8a0072cea5d Mon Sep 17 00:00:00 2001 From: YeonJuan Date: Thu, 2 Jan 2025 08:48:55 +0900 Subject: [PATCH] add test cases --- .../tests/rules/no-nested-interactive.test.js | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/packages/eslint-plugin/tests/rules/no-nested-interactive.test.js b/packages/eslint-plugin/tests/rules/no-nested-interactive.test.js index 033ddc4e..1f9c04f4 100644 --- a/packages/eslint-plugin/tests/rules/no-nested-interactive.test.js +++ b/packages/eslint-plugin/tests/rules/no-nested-interactive.test.js @@ -76,6 +76,28 @@ ruleTester.run("no-nested-interactive", rule, { }, ], }, + { + code: "", + errors: [ + { + messageId: "unexpected", + data: { + tag: "button", + }, + }, + ], + }, + { + code: "", + errors: [ + { + messageId: "unexpected", + data: { + tag: "label", + }, + }, + ], + }, ], });