mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 00:50:23 -05:00
30f499cf2e
update server to use absolute import paths
14 lines
412 B
TypeScript
14 lines
412 B
TypeScript
import { ISearchRepository } from 'src/domain/repositories/search.repository';
|
|
|
|
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(),
|
|
};
|
|
};
|