diff --git a/apps/edr-freight-api/src/modules/otp/otp.controller.spec.ts b/apps/edr-freight-api/src/modules/otp/otp.controller.spec.ts index cac5fdba0..3aefe7cdb 100644 --- a/apps/edr-freight-api/src/modules/otp/otp.controller.spec.ts +++ b/apps/edr-freight-api/src/modules/otp/otp.controller.spec.ts @@ -1,5 +1,6 @@ import { Test, TestingModule } from '@nestjs/testing'; import { OtpController } from './otp.controller'; +import { OtpService } from './otp.service'; describe('OtpController', () => { let controller: OtpController; @@ -7,6 +8,9 @@ describe('OtpController', () => { beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ controllers: [OtpController], + providers: [ + { provide: OtpService, useValue: { send: jest.fn(), verify: jest.fn() } }, + ], }).compile(); controller = module.get(OtpController);