vvandenb
2 years ago
3 changed files with 1 additions and 39 deletions
@ -1,18 +0,0 @@ |
|||||
import { Test, type TestingModule } from '@nestjs/testing' |
|
||||
import { PongGateway } from './pong.gateway' |
|
||||
|
|
||||
describe('PongGateway', () => { |
|
||||
let gateway: PongGateway |
|
||||
|
|
||||
beforeEach(async () => { |
|
||||
const module: TestingModule = await Test.createTestingModule({ |
|
||||
providers: [PongGateway] |
|
||||
}).compile() |
|
||||
|
|
||||
gateway = module.get<PongGateway>(PongGateway) |
|
||||
}) |
|
||||
|
|
||||
it('should be defined', () => { |
|
||||
expect(gateway).toBeDefined() |
|
||||
}) |
|
||||
}) |
|
@ -1,18 +0,0 @@ |
|||||
import { Test, type TestingModule } from '@nestjs/testing' |
|
||||
import { Games } from './game/Games' |
|
||||
|
|
||||
describe('Pong', () => { |
|
||||
let provider: Games |
|
||||
|
|
||||
beforeEach(async () => { |
|
||||
const module: TestingModule = await Test.createTestingModule({ |
|
||||
providers: [Games] |
|
||||
}).compile() |
|
||||
|
|
||||
provider = module.get<Games>(Games) |
|
||||
}) |
|
||||
|
|
||||
it('should be defined', () => { |
|
||||
expect(provider).toBeDefined() |
|
||||
}) |
|
||||
}) |
|
Loading…
Reference in new issue