1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-04-03 22:56:25 +02:00
immich/server/test/repositories/cron.repository.mock.ts
2025-02-11 00:47:42 +01:00

10 lines
317 B
TypeScript

import { CronRepository } from 'src/repositories/cron.repository';
import { RepositoryInterface } from 'src/types';
import { Mocked, vitest } from 'vitest';
export const newCronRepositoryMock = (): Mocked<RepositoryInterface<CronRepository>> => {
return {
create: vitest.fn(),
update: vitest.fn(),
};
};