LocChat/server/app.controller.spec.ts
2021-12-05 18:46:44 -07:00

22 lines
560 B
TypeScript

import { Test, TestingModule } from '@nestjs/testing';
import { AppController } from 'server/app.controller';
describe('AppController', () => {
let appController: AppController;
beforeEach(async () => {
const app: TestingModule = await Test.createTestingModule({
controllers: [AppController],
providers: [],
}).compile();
appController = app.get<AppController>(AppController);
});
describe('index', () => {
it('should run without crashing', () => {
expect(appController.index()).toBeUndefined();
});
});
});