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