You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
577 B
21 lines
577 B
import { Test, TestingModule } from '@nestjs/testing';
|
|
import { INestApplication } from '@nestjs/common';
|
|
import { AppController } from './app.controller';
|
|
|
|
describe('AppController', () => {
|
|
let app: TestingModule;
|
|
|
|
beforeAll(async () => {
|
|
app = await Test.createTestingModule({
|
|
controllers: [AppController],
|
|
providers: [],
|
|
}).compile();
|
|
});
|
|
|
|
describe('ping', () => {
|
|
it('should return "Hello World!"', () => {
|
|
const appController = app.get<AppController>(AppController);
|
|
expect(appController.root()).toBe('pong');
|
|
});
|
|
});
|
|
});
|