mirror of
https://github.com/immich-app/immich.git
synced 2025-01-07 20:36:48 +01:00
148428a564
* use events for config validation * chore: better types * add unit tests --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
12 lines
314 B
TypeScript
12 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(),
|
|
};
|
|
};
|