mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 11:56:46 +01:00
cd0e537e3e
* feat: persistent memories * refactor: use new add/remove asset utility
14 lines
418 B
TypeScript
14 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(),
|
|
};
|
|
};
|