mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
12 lines
360 B
TypeScript
12 lines
360 B
TypeScript
import { IEventRepository } from 'src/interfaces/event.interface';
|
|
import { Mocked, vitest } from 'vitest';
|
|
|
|
export const newEventRepositoryMock = (): Mocked<IEventRepository> => {
|
|
return {
|
|
setup: vitest.fn(),
|
|
emit: vitest.fn() as any,
|
|
clientSend: vitest.fn() as any,
|
|
clientBroadcast: vitest.fn() as any,
|
|
serverSend: vitest.fn(),
|
|
};
|
|
};
|