25 lines
626 B
JavaScript
25 lines
626 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: ''
|
|
};
|
|
|
|
// fix the useUserPreference hook
|
|
export const create = jest.fn().mockImplementation(() => jest.fn().mockImplementation(() => [0, jest.fn()]));
|