Browse Source

* rmd unused test files

master
vvandenb 2 years ago
parent
commit
16482b86cf
  1. 4
      back/volume/src/chat/chat.gateway.ts
  2. 18
      back/volume/src/pong/pong.gateway.spec.ts
  3. 18
      back/volume/src/pong/pong.spec.ts

4
back/volume/src/chat/chat.gateway.ts

@ -35,9 +35,7 @@ export class ChatGateway implements OnGatewayConnection, OnGatewayDisconnect {
private readonly connectedUserRepository: Repository<ConnectedUser> private readonly connectedUserRepository: Repository<ConnectedUser>
) {} ) {}
async handleConnection (socket: Socket): Promise<void> { async handleConnection (socket: Socket): Promise<void> {}
console.log('Client connected: ' + socket.id)
}
handleDisconnect (socket: Socket): void { handleDisconnect (socket: Socket): void {
socket.disconnect() socket.disconnect()

18
back/volume/src/pong/pong.gateway.spec.ts

@ -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()
})
})

18
back/volume/src/pong/pong.spec.ts

@ -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…
Cancel
Save