Skip to content

Commit 0b2c805

Browse files
committed
add no props case for AccessibleButton
Signed-off-by: Winner95 <Winner95@users.noreply.github.com>
1 parent 6b4051a commit 0b2c805

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

__tests__/handler.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ describe('typescript-react-function-component-props-handler', () => {
4646
);
4747
});
4848

49+
test('handles React.FC<Props> components - AccessibleButton', () => {
50+
const doc = parseFixture('AccessibleButton.tsx');
51+
52+
expect(doc.props).toBeUndefined();
53+
});
54+
4955
// Line 31 in index.js without type - can't be tested directly because of early return
5056
test('handles components without type', () => {
5157
const doc = parseFixture('ComponentWithoutType.tsx');

0 commit comments

Comments
 (0)