mirror of
https://github.com/immich-app/immich.git
synced 2024-11-16 10:28:54 -07:00
e334443919
* initial pagination impl * use limit + offset instead of take + skip * wip web pagination * working infinite scroll * update api * formatting * fix rebase * search refactor * re-add runtime config for vector search * fix rebase * fixes * useless omitBy * unnecessary handling * add sql decorator for `searchAssets` * fixed search builder * fixed sql * remove mock method * linting * fixed pagination * fixed unit tests * formatting * fix e2e tests * re-flatten search builder * refactor endpoints * clean up dto * refinements * don't break everything just yet * update openapi spec & sql * update api * linting * update sql * fixes * optimize web code * fix typing * add page limit * make limit based on asset count * increase limit * simpler import
12 lines
279 B
TypeScript
12 lines
279 B
TypeScript
import { ISearchRepository } from '@app/domain';
|
|
|
|
export const newSearchRepositoryMock = (): jest.Mocked<ISearchRepository> => {
|
|
return {
|
|
init: jest.fn(),
|
|
searchMetadata: jest.fn(),
|
|
searchSmart: jest.fn(),
|
|
searchFaces: jest.fn(),
|
|
upsert: jest.fn(),
|
|
};
|
|
};
|