1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-09 05:16:47 +01:00
immich/server/test/repositories/memory.repository.mock.ts

15 lines
418 B
TypeScript
Raw Normal View History

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(),
};
};