immich/server/test/repositories/activity.repository.mock.ts

11 lines
275 B
TypeScript
Raw Normal View History

import { IActivityRepository } from 'src/interfaces/activity.interface';
export const newActivityRepositoryMock = (): jest.Mocked<IActivityRepository> => {
return {
search: jest.fn(),
create: jest.fn(),
delete: jest.fn(),
getStatistics: jest.fn(),
};
};