bugfix: fix broken unit test example

This commit is contained in:
Kamil Myśliwiec
2018-04-28 18:04:45 +02:00
parent 7b918538db
commit 52e1cc679a
4 changed files with 145 additions and 539 deletions
+2
View File
@@ -1,6 +1,7 @@
import { Test, TestingModule } from '@nestjs/testing';
import { INestApplication } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
describe('AppController', () => {
let app: TestingModule;
@@ -8,6 +9,7 @@ describe('AppController', () => {
beforeAll(async () => {
app = await Test.createTestingModule({
controllers: [AppController],
providers: [AppService],
}).compile();
});