Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: While writing some Jest tests, I noticed some instances of the following error: ``` Cannot read properties of undefined (reading 'remove') ``` Looks like there were two cases where the `{remove: () => {}}` return result was missing in the provided Jest mocks: - `AccessibilityInfo.addEventListener` - `Linking.addEventListener` ## Changelog: [GENERAL] [FIXED] - Added missing `remove` methods for `Linking.addEventListener` and `AccessibilityInfo.addEventListener` Jest mocks Pull Request resolved: #44270 Test Plan: N/A Reviewed By: christophpurrer Differential Revision: D58324784 Pulled By: robhogan fbshipit-source-id: f46bd55db2517413f14182ae1bb81068d8d1e9f6
- Loading branch information