mirror of
https://github.com/immich-app/immich.git
synced 2024-12-03 09:59:32 +02:00
b588a87d4a
rename domain repositories
15 lines
402 B
TypeScript
15 lines
402 B
TypeScript
import { ISearchRepository } from 'src/interfaces/search.interface';
|
|
|
|
export const newSearchRepositoryMock = (): jest.Mocked<ISearchRepository> => {
|
|
return {
|
|
init: jest.fn(),
|
|
searchMetadata: jest.fn(),
|
|
searchSmart: jest.fn(),
|
|
searchFaces: jest.fn(),
|
|
upsert: jest.fn(),
|
|
searchPlaces: jest.fn(),
|
|
getAssetsByCity: jest.fn(),
|
|
deleteAllSearchEmbeddings: jest.fn(),
|
|
};
|
|
};
|