LocChat/server/app.controller.spec.ts

22 lines
560 B
TypeScript
Raw Permalink 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-05 20:46:44 -05:00
describe('index', () => {
it('should run without crashing', () => {
expect(appController.index()).toBeUndefined();
2021-12-03 19:00:23 -05:00
});
});
2021-10-29 20:57:24 -04:00
});