File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/react-native/jest/mocks Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 99 */
1010
1111const Linking = {
12- openURL : jest . fn ( ) as JestMockFn < $FlowFixMe , $FlowFixMe> ,
12+ openURL : jest . fn ( ( ) => Promise . resolve ( ) ) as JestMockFn < $FlowFixMe , $FlowFixMe> ,
1313 canOpenURL : jest . fn ( ( ) => Promise . resolve ( true ) ) as JestMockFn <
1414 $FlowFixMe ,
1515 $FlowFixMe,
1616 > ,
17- openSettings : jest . fn ( ) as JestMockFn < $FlowFixMe , $FlowFixMe> ,
17+ openSettings : jest . fn ( ( ) => Promise . resolve ( ) ) as JestMockFn < $FlowFixMe , $FlowFixMe> ,
1818 addEventListener : jest . fn ( ( ) => ( {
1919 remove : jest . fn ( ) ,
2020 } ) ) as JestMockFn < $FlowFixMe , $FlowFixMe> ,
2121 getInitialURL : jest . fn ( ( ) => Promise . resolve ( ) ) as JestMockFn <
2222 $FlowFixMe ,
2323 $FlowFixMe,
2424 > ,
25- sendIntent : jest . fn ( ) as JestMockFn < $FlowFixMe , $FlowFixMe> ,
25+ sendIntent : jest . fn ( ( ) => Promise . resolve ( ) ) as JestMockFn < $FlowFixMe , $FlowFixMe> ,
2626} ;
2727
2828export default Linking ;
You can’t perform that action at this time.
0 commit comments