mirror of
https://github.com/immich-app/immich.git
synced 2024-11-24 08:52:28 +02:00
8ebac41318
* refactor(server): tsconfigs * chore: dummy commit * fix: start.sh * chore: restore original entry scripts
15 lines
403 B
TypeScript
15 lines
403 B
TypeScript
import { IStorageRepository } from '@app/domain';
|
|
|
|
export const newStorageRepositoryMock = (): jest.Mocked<IStorageRepository> => {
|
|
return {
|
|
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(),
|
|
};
|
|
};
|