2024-03-23 00:24:02 +02:00
|
|
|
import { IEventRepository } from 'src/interfaces/event.interface';
|
2024-04-16 16:44:45 +02:00
|
|
|
import { Mocked, vitest } from 'vitest';
|
2024-03-23 00:24:02 +02:00
|
|
|
|
2024-04-16 16:44:45 +02:00
|
|
|
export const newEventRepositoryMock = (): Mocked<IEventRepository> => {
|
2024-03-23 00:24:02 +02:00
|
|
|
return {
|
2024-09-30 16:35:11 +02:00
|
|
|
on: vitest.fn() as any,
|
2024-06-27 21:54:20 +02:00
|
|
|
emit: vitest.fn() as any,
|
2024-09-30 21:50:34 +02:00
|
|
|
clientSend: vitest.fn() as any,
|
|
|
|
clientBroadcast: vitest.fn() as any,
|
2024-04-16 16:44:45 +02:00
|
|
|
serverSend: vitest.fn(),
|
2024-03-23 00:24:02 +02:00
|
|
|
};
|
|
|
|
};
|