mirror of
https://github.com/immich-app/immich.git
synced 2025-01-09 13:26:47 +01:00
15 lines
418 B
TypeScript
15 lines
418 B
TypeScript
|
import { IMemoryRepository } from 'src/interfaces/memory.interface';
|
||
|
|
||
|
export const newMemoryRepositoryMock = (): jest.Mocked<IMemoryRepository> => {
|
||
|
return {
|
||
|
search: jest.fn().mockResolvedValue([]),
|
||
|
get: jest.fn(),
|
||
|
create: jest.fn(),
|
||
|
update: jest.fn(),
|
||
|
delete: jest.fn(),
|
||
|
getAssetIds: jest.fn().mockResolvedValue(new Set()),
|
||
|
addAssetIds: jest.fn(),
|
||
|
removeAssetIds: jest.fn(),
|
||
|
};
|
||
|
};
|