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