mirror of
https://github.com/immich-app/immich.git
synced 2025-01-04 10:56:47 +01:00
50c9bc0336
* chore: jest => vitest * chore: replace jest-when
11 lines
326 B
TypeScript
11 lines
326 B
TypeScript
import { IEventRepository } from 'src/interfaces/event.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newEventRepositoryMock = (): Mocked<IEventRepository> => {
|
|
return {
|
|
clientSend: vitest.fn(),
|
|
clientBroadcast: vitest.fn(),
|
|
serverSend: vitest.fn(),
|
|
serverSendAsync: vitest.fn(),
|
|
};
|
|
};
|