mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
ad343b7b32
* refactor: download assets * chore: open api * chore: finish tests, make size configurable * chore: defualt to 4GiB * chore: open api * fix: optional archive size * fix: bugs * chore: cleanup
16 lines
435 B
TypeScript
16 lines
435 B
TypeScript
import { IStorageRepository } from '@app/domain';
|
|
|
|
export const newStorageRepositoryMock = (): jest.Mocked<IStorageRepository> => {
|
|
return {
|
|
createZipStream: jest.fn(),
|
|
createReadStream: jest.fn(),
|
|
unlink: jest.fn(),
|
|
unlinkDir: jest.fn().mockResolvedValue(true),
|
|
removeEmptyDirs: jest.fn(),
|
|
moveFile: jest.fn(),
|
|
checkFileExists: jest.fn(),
|
|
mkdirSync: jest.fn(),
|
|
checkDiskUsage: jest.fn(),
|
|
};
|
|
};
|