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