LocChat/server/app.controller.spec.ts

22 lines
565 B
TypeScript
Raw Normal View History

2021-10-29 20:57:24 -04:00
import { Test, TestingModule } from '@nestjs/testing';
2021-12-03 19:00:23 -05:00
import { AppController } from 'server/app.controller';
2021-10-29 20:57:24 -04:00
describe('AppController', () => {
let appController: AppController;
beforeEach(async () => {
const app: TestingModule = await Test.createTestingModule({
controllers: [AppController],
2021-11-23 16:04:12 -05:00
providers: [],
2021-10-29 20:57:24 -04:00
}).compile();
appController = app.get<AppController>(AppController);
});
2021-12-03 19:00:23 -05:00
describe('root', () => {
it('should return "Hello World!"', () => {
expect(appController.index()).toBe('Hello World!');
});
});
2021-10-29 20:57:24 -04:00
});