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