feature: compatibility with various IDEs

This commit is contained in:
Kamil Myśliwiec
2018-12-07 12:51:42 +01:00
parent 1bbfc970c8
commit 1b81bde89e
8 changed files with 30 additions and 64 deletions
+2 -3
View File
@@ -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!');
});
});
});
+2 -2
View File
@@ -6,7 +6,7 @@ export class AppController {
constructor(private readonly appService: AppService) {}
@Get()
root(): string {
return this.appService.root();
getHello(): string {
return this.appService.getHello();
}
}
+1 -1
View File
@@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
@Injectable()
export class AppService {
root(): string {
getHello(): string {
return 'Hello World!';
}
}