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