Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should work for web -> native for Android (custom schema) ', () => {
isMobile.mockReturnValue(true)
isAndroid.mockResolvedValue(true)
const root = shallow(
).dive()
root.find('a').simulate('click', { preventDefault: () => {} })
expect(openDeeplinkOrRedirect).toHaveBeenCalledWith(
'cozydrive://',
expect.any(Function)
)
expect(appSwitchMock).toHaveBeenCalled()
})