mirror of
https://github.com/vernu/textbee.git
synced 2026-04-18 22:10:48 -04:00
23 lines
606 B
TypeScript
23 lines
606 B
TypeScript
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!')
|
|
})
|
|
})
|
|
})
|