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