app.controller.spec.ts 531 B

123456789101112131415161718192021
  1. import { Test, TestingModule } from '@nestjs/testing';
  2. import { AppController } from './app.controller';
  3. describe('AppController', () => {
  4. let appController: AppController;
  5. beforeEach(async () => {
  6. const app: TestingModule = await Test.createTestingModule({
  7. controllers: [AppController],
  8. providers: [],
  9. }).compile();
  10. appController = app.get<AppController>(AppController);
  11. });
  12. describe('root', () => {
  13. it('should defined', () => {
  14. expect(appController).toBeDefined();
  15. });
  16. });
  17. });