feature: compatibility with various IDEs
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { INestApplication } from '@nestjs/common';
|
||||
import { AppController } from './app.controller';
|
||||
import { AppService } from './app.service';
|
||||
|
||||
@@ -13,10 +12,10 @@ describe('AppController', () => {
|
||||
}).compile();
|
||||
});
|
||||
|
||||
describe('root', () => {
|
||||
describe('getHello', () => {
|
||||
it('should return "Hello World!"', () => {
|
||||
const appController = app.get<AppController>(AppController);
|
||||
expect(appController.root()).toBe('Hello World!');
|
||||
expect(appController.getHello()).toBe('Hello World!');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user