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

10 lines
329 B
TypeScript

import { AuditRepository } from 'src/repositories/audit.repository';
import { RepositoryInterface } from 'src/types';
import { Mocked, vitest } from 'vitest';
export const newAuditRepositoryMock = (): Mocked<RepositoryInterface<AuditRepository>> => {
return {
getAfter: vitest.fn(),
removeBefore: vitest.fn(),
};
};