21 lines
588 B
TypeScript
21 lines
588 B
TypeScript
import { Test, TestingModule } from '@nestjs/testing';
|
|
import { LobbyController } from './games.lobby.controller';
|
|
import { LobbyService } from '../services/games.lobby.service';
|
|
|
|
describe('GamesController', () => {
|
|
let controller: LobbyController;
|
|
|
|
beforeEach(async () => {
|
|
const module: TestingModule = await Test.createTestingModule({
|
|
controllers: [LobbyController],
|
|
providers: [LobbyService],
|
|
}).compile();
|
|
|
|
controller = module.get<LobbyController>(LobbyController);
|
|
});
|
|
|
|
it('should be defined', () => {
|
|
expect(controller).toBeDefined();
|
|
});
|
|
});
|