added utils unit tests (#8040)

This commit is contained in:
Elias Nahum
2024-07-05 07:17:09 +08:00
committed by GitHub
parent 92bdb2847b
commit a7224479d5
26 changed files with 2607 additions and 56 deletions

View File

@@ -144,7 +144,7 @@ jest.doMock('react-native', () => {
}),
addListener: jest.fn(),
removeListeners: jest.fn(),
isRunningInSplitView: jest.fn().mockReturnValue(() => ({isSplit: false, isTablet: false})),
isRunningInSplitView: jest.fn().mockReturnValue({isSplit: false, isTablet: false}),
getDeliveredNotifications: jest.fn().mockResolvedValue([]),
removeChannelNotifications: jest.fn().mockImplementation(),