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