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