From b6f812c3f8defd316e3010b048447e0a51729933 Mon Sep 17 00:00:00 2001 From: yassinedorbozgithub Date: Tue, 24 Jun 2025 06:23:37 +0100 Subject: [PATCH] fix(api): update options type --- api/src/user/controllers/user.controller.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/user/controllers/user.controller.spec.ts b/api/src/user/controllers/user.controller.spec.ts index cf73cba9..174e661e 100644 --- a/api/src/user/controllers/user.controller.spec.ts +++ b/api/src/user/controllers/user.controller.spec.ts @@ -8,6 +8,7 @@ import { ForbiddenException, NotFoundException } from '@nestjs/common'; import { JwtService } from '@nestjs/jwt'; +import { ISendMailOptions } from '@nestjs-modules/mailer'; import { Session as ExpressSession } from 'express-session'; import { SentMessageInfo } from 'nodemailer'; @@ -64,7 +65,7 @@ describe('UserController', () => { { provide: MailerService, useValue: { - sendMail(_options: unknown): Promise { + sendMail(_options: ISendMailOptions): Promise { return Promise.resolve('Mail sent successfully'); }, },