2024-03-21 12:59:49 +01:00
|
|
|
import { ISearchRepository } from 'src/interfaces/search.interface';
|
2024-04-16 16:44:45 +02:00
|
|
|
import { Mocked, vitest } from 'vitest';
|
2024-02-13 02:50:47 +01:00
|
|
|
|
2024-04-16 16:44:45 +02:00
|
|
|
export const newSearchRepositoryMock = (): Mocked<ISearchRepository> => {
|
2024-02-13 02:50:47 +01:00
|
|
|
return {
|
2024-04-16 16:44:45 +02:00
|
|
|
searchMetadata: vitest.fn(),
|
|
|
|
searchSmart: vitest.fn(),
|
2024-05-16 19:08:37 +02:00
|
|
|
searchDuplicates: vitest.fn(),
|
2024-04-16 16:44:45 +02:00
|
|
|
searchFaces: vitest.fn(),
|
2024-09-30 06:29:35 +02:00
|
|
|
searchRandom: vitest.fn(),
|
2024-04-16 16:44:45 +02:00
|
|
|
upsert: vitest.fn(),
|
|
|
|
searchPlaces: vitest.fn(),
|
|
|
|
getAssetsByCity: vitest.fn(),
|
|
|
|
deleteAllSearchEmbeddings: vitest.fn(),
|
2024-08-04 23:00:36 +02:00
|
|
|
getDimensionSize: vitest.fn(),
|
|
|
|
setDimensionSize: vitest.fn(),
|
2024-09-18 14:44:22 +02:00
|
|
|
getCameraMakes: vitest.fn(),
|
|
|
|
getCameraModels: vitest.fn(),
|
|
|
|
getCities: vitest.fn(),
|
|
|
|
getCountries: vitest.fn(),
|
|
|
|
getStates: vitest.fn(),
|
2024-02-13 02:50:47 +01:00
|
|
|
};
|
|
|
|
};
|