Skip to content

Commit

Permalink
(jest/setup) remove removeEventListener from AccessibilityInfo and Li…
Browse files Browse the repository at this point in the history
…nking mocks (#34260)

Summary:
The removeEventListener method has been removed from AccessibilityInfo and Linking in this PR: #33580, so I believe we can remove it from the mocks.

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[Internal] [Removed] - Remove removeEventListener from AccessibilityInfo and Linking mocks

Pull Request resolved: #34260

Test Plan: I executed jest and everything is still green.

Reviewed By: dmitryrykun

Differential Revision: D38198653

Pulled By: GijsWeterings

fbshipit-source-id: 72d10ca54cd505d7c76e7531c9df718b1a9b9ed1
  • Loading branch information
Antoine Doubovetzky authored and facebook-github-bot committed Jul 27, 2022
1 parent 479053c commit 8571451
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions jest/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8571451

Please sign in to comment.