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