Skip to content

Commit 47d643f

Browse files
committed
test: update test cases of function-component rule
1 parent 16498b1 commit 47d643f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/plugins/eslint-plugin-react-debug/src/rules/function-component.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,5 +1391,11 @@ ruleTester.run(RULE_NAME, rule, {
13911391
return null;
13921392
}) satisfies ActionFUnction;
13931393
`,
1394+
/* tsx */ `
1395+
export const action = (() => {
1396+
// ^?
1397+
return null;
1398+
}) as ActionFUnction satisfies ActionFUnction;
1399+
`,
13941400
],
13951401
});

0 commit comments

Comments
 (0)