Rocket.Chat.ReactNative/__mocks__/react-native-mmkv-storage.js

24 lines
515 B
JavaScript

export class MMKVLoader {
constructor() {
console.log('MMKVLoader constructor mock');
}
setProcessingMode = jest.fn().mockImplementation(() => ({
setAccessibleIOS: jest.fn().mockImplementation(() => ({
withEncryption: jest.fn().mockImplementation(() => ({
initialize: jest.fn().mockImplementation(() => {})
}))
}))
}));
}
export const ProcessingModes = {
MULTI_PROCESS: ''
};
export const IOSAccessibleStates = {
AFTER_FIRST_UNLOCK_THIS_DEVICE_ONLY: ''
};
export const create = jest.fn();