mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 13:27:46 +02:00
148428a564
* use events for config validation * chore: better types * add unit tests --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
13 lines
314 B
TypeScript
13 lines
314 B
TypeScript
import { ICommunicationRepository } from '@app/domain';
|
|
|
|
export const newCommunicationRepositoryMock = (): jest.Mocked<ICommunicationRepository> => {
|
|
return {
|
|
send: jest.fn(),
|
|
broadcast: jest.fn(),
|
|
on: jest.fn(),
|
|
sendServerEvent: jest.fn(),
|
|
emit: jest.fn(),
|
|
emitAsync: jest.fn(),
|
|
};
|
|
};
|