completion
This commit is contained in:
16
ioneapps-maagapp-ee31119a522d/__mocks__/react-native-creedon-imagepicker.js
vendored
Normal file
16
ioneapps-maagapp-ee31119a522d/__mocks__/react-native-creedon-imagepicker.js
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/* global jest: false */
|
||||
import { NativeModules } from 'react-native';
|
||||
|
||||
NativeModules.RNCreedonImagepicker = {
|
||||
assets: jest.fn(),
|
||||
launchImageLibrary: jest.fn(),
|
||||
cleanupTempFiles: jest.fn(),
|
||||
addListener: jest.fn(),
|
||||
};
|
||||
|
||||
const mockRNCreedonImagepicker = jest.genMockFromModule('react-native-creedon-imagepicker');
|
||||
mockRNCreedonImagepicker.assets = () => Promise.resolve();
|
||||
mockRNCreedonImagepicker.launchImageLibrary = () => Promise.resolve();
|
||||
mockRNCreedonImagepicker.cleanupTempFiles = () => Promise.resolve();
|
||||
|
||||
module.exports = mockRNCreedonImagepicker;
|
||||
Reference in New Issue
Block a user