mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +02:00
13 lines
364 B
TypeScript
13 lines
364 B
TypeScript
import { IEventRepository } from 'src/interfaces/event.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newEventRepositoryMock = (): Mocked<IEventRepository> => {
|
|
return {
|
|
on: vitest.fn() as any,
|
|
emit: vitest.fn() as any,
|
|
clientSend: vitest.fn() as any,
|
|
clientBroadcast: vitest.fn() as any,
|
|
serverSend: vitest.fn(),
|
|
};
|
|
};
|