|
|
@ -3,20 +3,20 @@ import { AppController } from './app.controller'; |
|
|
|
import { AppService } from './app.service'; |
|
|
|
import { AppService } from './app.service'; |
|
|
|
|
|
|
|
|
|
|
|
describe('AppController', () => { |
|
|
|
describe('AppController', () => { |
|
|
|
let appController: AppController; |
|
|
|
let appController: AppController; |
|
|
|
|
|
|
|
|
|
|
|
beforeEach(async () => { |
|
|
|
beforeEach(async () => { |
|
|
|
const app: TestingModule = await Test.createTestingModule({ |
|
|
|
const app: TestingModule = await Test.createTestingModule({ |
|
|
|
controllers: [AppController], |
|
|
|
controllers: [AppController], |
|
|
|
providers: [AppService], |
|
|
|
providers: [AppService], |
|
|
|
}).compile(); |
|
|
|
}).compile(); |
|
|
|
|
|
|
|
|
|
|
|
appController = app.get<AppController>(AppController); |
|
|
|
appController = app.get<AppController>(AppController); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
describe('root', () => { |
|
|
|
describe('root', () => { |
|
|
|
it('should return "Hello World!"', () => { |
|
|
|
it('should return "Hello World!"', () => { |
|
|
|
expect(appController.getHello()).toBe('Hello World!'); |
|
|
|
expect(appController.getHello()).toBe('Hello World!'); |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|