mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Update AppState Jest Mock
Summary: Updates the AppState Jest mock to correspond to recent API changes. Changelog: [General][Fixed] - Updated AppState Jest mock to match new public API Reviewed By: yungsters Differential Revision: D26295371 fbshipit-source-id: e6e39f23d9100f0eacf257f45d509c5364dcb28d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e2263b343e
commit
b28fa2dae0
+3
-2
@@ -160,8 +160,9 @@ jest
|
||||
),
|
||||
)
|
||||
.mock('../Libraries/AppState/AppState', () => ({
|
||||
addEventListener: jest.fn(),
|
||||
removeEventListener: jest.fn(),
|
||||
addEventListener: jest.fn(() => ({
|
||||
remove: jest.fn(),
|
||||
})),
|
||||
}))
|
||||
.mock('../Libraries/Linking/Linking', () => ({
|
||||
openURL: jest.fn(),
|
||||
|
||||
Reference in New Issue
Block a user