minor code cleanup
This commit is contained in:
parent
cfbd7c1550
commit
746adcd2fd
5 changed files with 28 additions and 27 deletions
|
|
@ -1,22 +1,22 @@
|
|||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { AppController } from './app.controller';
|
||||
import { AppService } from './app.service';
|
||||
|
||||
describe('AppController', () => {
|
||||
let appController: AppController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const app: TestingModule = await Test.createTestingModule({
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
}).compile();
|
||||
|
||||
appController = app.get<AppController>(AppController);
|
||||
});
|
||||
|
||||
describe('root', () => {
|
||||
it('should return "Hello World!"', () => {
|
||||
expect(appController.getHello()).toBe('Hello World!');
|
||||
});
|
||||
});
|
||||
});
|
||||
// import { Test, TestingModule } from '@nestjs/testing';
|
||||
// import { AppController } from './app.controller';
|
||||
// import { AppService } from './app.service';
|
||||
//
|
||||
// describe('AppController', () => {
|
||||
// let appController: AppController;
|
||||
//
|
||||
// beforeEach(async () => {
|
||||
// const app: TestingModule = await Test.createTestingModule({
|
||||
// controllers: [AppController],
|
||||
// providers: [AppService],
|
||||
// }).compile();
|
||||
//
|
||||
// appController = app.get<AppController>(AppController);
|
||||
// });
|
||||
//
|
||||
// describe('root', () => {
|
||||
// it('should return "Hello World!"', () => {
|
||||
// expect(appController.getHello()).toBe('Hello World!');
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue