Skip to content

Commit 569344e

Browse files
committed
chore: remove dead check
1 parent 08c3952 commit 569344e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/fireEvent.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import { getHostComponentNames } from './helpers/host-component-names';
88
type EventHandler = (...args: any) => unknown;
99

1010
function isTextInput(element: ReactTestInstance) {
11-
if (!element) {
12-
return false;
13-
}
14-
1511
// We have to test if the element type is either the `TextInput` component
1612
// (for composite component) or the string "TextInput" (for host component)
1713
// All queries return host components but since fireEvent bubbles up

0 commit comments

Comments
 (0)