mirror of
https://github.com/immich-app/immich.git
synced 2024-12-28 22:51:59 +00:00
10 lines
353 B
TypeScript
10 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(),
|
|
};
|
|
};
|