"inicialización"
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { PreguntaController } from './pregunta.controller';
|
||||
import { PreguntaService } from './pregunta.service';
|
||||
|
||||
describe('PreguntaController', () => {
|
||||
let controller: PreguntaController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [PreguntaController],
|
||||
providers: [PreguntaService],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<PreguntaController>(PreguntaController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user