UNPKG

pinata-expo-hooks

Version:

React Native/Expo hooks for Pinata TUS uploads

14 lines (13 loc) 392 B
export const EncodingType = { Base64: 'base64', UTF8: 'utf8', }; export const getInfoAsync = jest.fn().mockResolvedValue({ exists: true, size: 1024 * 1024, isDirectory: false, }); export const readAsStringAsync = jest.fn().mockImplementation((uri, options) => { // Mock base64 content for tests return Promise.resolve('dGVzdCBkYXRh'); // "test data" in base64 });