From 857145181bdf32486366c36387aa3796bc5b58d9 Mon Sep 17 00:00:00 2001 From: Antoine Doubovetzky Date: Wed, 27 Jul 2022 04:33:02 -0700 Subject: [PATCH] (jest/setup) remove removeEventListener from AccessibilityInfo and Linking mocks (#34260) Summary: The removeEventListener method has been removed from AccessibilityInfo and Linking in this PR: https://github.com/facebook/react-native/issues/33580, so I believe we can remove it from the mocks. ## Changelog [Internal] [Removed] - Remove removeEventListener from AccessibilityInfo and Linking mocks Pull Request resolved: https://github.com/facebook/react-native/pull/34260 Test Plan: I executed jest and everything is still green. Reviewed By: dmitryrykun Differential Revision: D38198653 Pulled By: GijsWeterings fbshipit-source-id: 72d10ca54cd505d7c76e7531c9df718b1a9b9ed1 --- jest/setup.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/jest/setup.js b/jest/setup.js index 8a53d7e8d6ece3..258948e851e4ed 100644 --- a/jest/setup.js +++ b/jest/setup.js @@ -130,7 +130,6 @@ jest isReduceMotionEnabled: jest.fn(), isReduceTransparencyEnabled: jest.fn(), isScreenReaderEnabled: jest.fn(() => Promise.resolve(false)), - removeEventListener: jest.fn(), setAccessibilityFocus: jest.fn(), sendAccessibilityEvent: jest.fn(), getRecommendedTimeoutMillis: jest.fn(), @@ -177,7 +176,6 @@ jest openSettings: jest.fn(), addEventListener: jest.fn(), getInitialURL: jest.fn(() => Promise.resolve()), - removeEventListener: jest.fn(), sendIntent: jest.fn(), })) // Mock modules defined by the native layer (ex: Objective-C, Java)