mirror of
https://github.com/immich-app/immich.git
synced 2024-11-28 09:33:27 +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(),
|
|
};
|
|
};
|