2023-06-08 17:01:07 +02:00
|
|
|
import { ISearchRepository } from '@app/domain';
|
2023-03-03 04:47:08 +02:00
|
|
|
|
|
|
|
export const newSearchRepositoryMock = (): jest.Mocked<ISearchRepository> => {
|
|
|
|
return {
|
|
|
|
setup: jest.fn(),
|
|
|
|
checkMigrationStatus: jest.fn(),
|
2023-03-18 15:44:42 +02:00
|
|
|
importAssets: jest.fn(),
|
|
|
|
importAlbums: jest.fn(),
|
2023-05-17 19:07:17 +02:00
|
|
|
importFaces: jest.fn(),
|
2023-03-18 15:44:42 +02:00
|
|
|
deleteAlbums: jest.fn(),
|
|
|
|
deleteAssets: jest.fn(),
|
2023-05-17 19:07:17 +02:00
|
|
|
deleteFaces: jest.fn(),
|
|
|
|
deleteAllFaces: jest.fn(),
|
2023-08-29 15:58:00 +02:00
|
|
|
updateCLIPField: jest.fn(),
|
2023-03-18 15:44:42 +02:00
|
|
|
searchAssets: jest.fn(),
|
|
|
|
searchAlbums: jest.fn(),
|
|
|
|
vectorSearch: jest.fn(),
|
2023-03-05 22:44:31 +02:00
|
|
|
explore: jest.fn(),
|
2023-05-17 19:07:17 +02:00
|
|
|
searchFaces: jest.fn(),
|
2023-03-03 04:47:08 +02:00
|
|
|
};
|
|
|
|
};
|