mirror of
https://github.com/immich-app/immich.git
synced 2024-11-30 09:47:31 +02:00
50c9bc0336
* chore: jest => vitest * chore: replace jest-when
12 lines
319 B
TypeScript
12 lines
319 B
TypeScript
import { IActivityRepository } from 'src/interfaces/activity.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newActivityRepositoryMock = (): Mocked<IActivityRepository> => {
|
|
return {
|
|
search: vitest.fn(),
|
|
create: vitest.fn(),
|
|
delete: vitest.fn(),
|
|
getStatistics: vitest.fn(),
|
|
};
|
|
};
|