mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 00:52:50 +00:00
23 lines
626 B
TypeScript
23 lines
626 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
import { OtpController } from './otp.controller';
|
|
import { OtpService } from './otp.service';
|
|
|
|
describe('OtpController', () => {
|
|
let controller: 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>(OtpController);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(controller).toBeDefined();
|
|
});
|
|
});
|