immich/server/libs/domain/test/search.repository.mock.ts

14 lines
317 B
TypeScript
Raw Normal View History

import { ISearchRepository } from '../src';
export const newSearchRepositoryMock = (): jest.Mocked<ISearchRepository> => {
return {
setup: jest.fn(),
checkMigrationStatus: jest.fn(),
index: jest.fn(),
import: jest.fn(),
search: jest.fn(),
delete: jest.fn(),
explore: jest.fn(),
};
};