t2-stat-parser/app/api/src/app.controller.spec.ts

23 lines
588 B
TypeScript
Raw Normal View History

2020-08-22 10:19:50 -04:00
import { Test, TestingModule } from '@nestjs/testing';
import { AppController } from './app.controller';
import { AppService } from './app.service';
describe('AppController', () => {
2020-08-29 19:20:44 -04:00
let appController: AppController;
2020-08-22 10:19:50 -04:00
2020-08-29 19:20:44 -04:00
beforeEach(async () => {
const app: TestingModule = await Test.createTestingModule({
controllers: [ AppController ],
providers: [ AppService ]
}).compile();
2020-08-22 10:19:50 -04:00
2020-08-29 19:20:44 -04:00
appController = app.get<AppController>(AppController);
});
2020-08-22 10:19:50 -04:00
2020-08-29 19:20:44 -04:00
describe('root', () => {
it('should return "Healthy!"', () => {
expect(appController.getHello()).toBe('Healthy!');
});
});
2020-08-22 10:19:50 -04:00
});