1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21import { Test, TestingModule } from '@nestjs/testing';
import { CommentsController } from './comments.controller';
import { CommentsService } from './comments.service';
describe('CommentsController', () => {
let controller: CommentsController;
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
controllers: [CommentsController],
providers: [CommentsService],
}).compile();
controller = module.get<CommentsController>(CommentsController);
});
it('should be defined', () => {
expect(controller).toBeDefined();
});
});