mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
23 lines
690 B
TypeScript
23 lines
690 B
TypeScript
import { ISearchRepository } from 'src/interfaces/search.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newSearchRepositoryMock = (): Mocked<ISearchRepository> => {
|
|
return {
|
|
searchMetadata: vitest.fn(),
|
|
searchSmart: vitest.fn(),
|
|
searchDuplicates: vitest.fn(),
|
|
searchFaces: vitest.fn(),
|
|
upsert: vitest.fn(),
|
|
searchPlaces: vitest.fn(),
|
|
getAssetsByCity: vitest.fn(),
|
|
deleteAllSearchEmbeddings: vitest.fn(),
|
|
getDimensionSize: vitest.fn(),
|
|
setDimensionSize: vitest.fn(),
|
|
getCameraMakes: vitest.fn(),
|
|
getCameraModels: vitest.fn(),
|
|
getCities: vitest.fn(),
|
|
getCountries: vitest.fn(),
|
|
getStates: vitest.fn(),
|
|
};
|
|
};
|