summaryrefslogtreecommitdiff
path: root/server/app.controller.spec.ts
blob: 53d6cf823a4c55753b019910e55ae5867d2f57b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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();
    });
  });
});