mirror of
https://github.com/immich-app/immich.git
synced 2024-11-24 08:52:28 +02:00
11 lines
353 B
TypeScript
11 lines
353 B
TypeScript
import { INotificationRepository } from 'src/interfaces/notification.interface';
|
|
import { Mocked } from 'vitest';
|
|
|
|
export const newNotificationRepositoryMock = (): Mocked<INotificationRepository> => {
|
|
return {
|
|
renderEmail: vitest.fn(),
|
|
sendEmail: vitest.fn().mockResolvedValue({ messageId: 'message-1' }),
|
|
verifySmtp: vitest.fn(),
|
|
};
|
|
};
|