Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

23 Zeilen
617B

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