Skip to content

Commit 613f24e

Browse files
committed
.
1 parent 837603c commit 613f24e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/__tests__/fire-event.test.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -249,17 +249,6 @@ test('fireEvent calls handler on element when both element and parent have handl
249249
expect(parentHandler).not.toHaveBeenCalled();
250250
});
251251

252-
test('fireEvent does nothing when element is unmounted', async () => {
253-
const onPress = jest.fn();
254-
const { unmount } = await render(<Pressable testID="btn" onPress={onPress} />);
255-
const element = screen.getByTestId('btn');
256-
257-
await unmount();
258-
259-
await fireEvent.press(element);
260-
expect(onPress).not.toHaveBeenCalled();
261-
});
262-
263252
test('fireEvent does not update native state when element is unmounted', async () => {
264253
const { unmount } = await render(<TextInput testID="input" />);
265254
const input = screen.getByTestId('input');

0 commit comments

Comments
 (0)