1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-11 11:42:19 +02:00
immich/server/test/repositories/search.repository.mock.ts

15 lines
402 B
TypeScript
Raw Normal View History

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(),
};
};