mirror of
https://github.com/amineo/t2-stat-parser.git
synced 2026-03-04 12:20:21 +00:00
22 lines
588 B
TypeScript
22 lines
588 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
import { AppController } from './app.controller';
|
|
import { AppService } from './app.service';
|
|
|
|
describe('AppController', () => {
|
|
let appController: AppController;
|
|
|
|
beforeEach(async () => {
|
|
const app: TestingModule = await Test.createTestingModule({
|
|
controllers: [ AppController ],
|
|
providers: [ AppService ]
|
|
}).compile();
|
|
|
|
appController = app.get<AppController>(AppController);
|
|
});
|
|
|
|
describe('root', () => {
|
|
it('should return "Healthy!"', () => {
|
|
expect(appController.getHello()).toBe('Healthy!');
|
|
});
|
|
});
|
|
});
|