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