21 lines
576 B
TypeScript
21 lines
576 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing'
|
|
import { PlayersController } from './players.controller'
|
|
import { PlayersService } from './players.service'
|
|
|
|
describe('PlayersController', () => {
|
|
let controller: PlayersController
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
controllers: [PlayersController],
|
|
providers: [PlayersService],
|
|
}).compile()
|
|
|
|
controller = module.get<PlayersController>(PlayersController)
|
|
})
|
|
|
|
it('should be defined', () => {
|
|
expect(controller).toBeDefined()
|
|
})
|
|
})
|