19 lines
513 B
TypeScript
19 lines
513 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
import { CategoriaController } from './categoria.controller';
|
|
|
|
describe('CategoriaController', () => {
|
|
let controller: CategoriaController;
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
controllers: [CategoriaController],
|
|
}).compile();
|
|
|
|
controller = module.get<CategoriaController>(CategoriaController);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(controller).toBeDefined();
|
|
});
|
|
});
|