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