File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff 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-
263252test ( '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' ) ;
You can’t perform that action at this time.
0 commit comments