LocChat/server/app.controller.spec.ts
Joseph Ditton edbbed2050 readme
2021-12-03 17:00:23 -07:00

22 lines
565 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('root', () => {
it('should return "Hello World!"', () => {
expect(appController.index()).toBe('Hello World!');
});
});
});