immich/server/test/repositories/search.repository.mock.ts

21 lines
549 B
TypeScript
Raw Normal View History

import { ISearchRepository } from '@app/domain';
export const newSearchRepositoryMock = (): jest.Mocked<ISearchRepository> => {
return {
setup: jest.fn(),
checkMigrationStatus: jest.fn(),
importAssets: jest.fn(),
importAlbums: jest.fn(),
2023-05-17 10:07:17 -07:00
importFaces: jest.fn(),
deleteAlbums: jest.fn(),
deleteAssets: jest.fn(),
2023-05-17 10:07:17 -07:00
deleteFaces: jest.fn(),
deleteAllFaces: jest.fn(),
searchAssets: jest.fn(),
searchAlbums: jest.fn(),
vectorSearch: jest.fn(),
explore: jest.fn(),
2023-05-17 10:07:17 -07:00
searchFaces: jest.fn(),
};
};