From 16482b86cfd61cc1db1b0a434b64012b6d1e743d Mon Sep 17 00:00:00 2001 From: vvandenb Date: Thu, 16 Mar 2023 09:52:26 +0100 Subject: [PATCH] * rmd unused test files --- back/volume/src/chat/chat.gateway.ts | 4 +--- back/volume/src/pong/pong.gateway.spec.ts | 18 ------------------ back/volume/src/pong/pong.spec.ts | 18 ------------------ 3 files changed, 1 insertion(+), 39 deletions(-) delete mode 100644 back/volume/src/pong/pong.gateway.spec.ts delete mode 100644 back/volume/src/pong/pong.spec.ts diff --git a/back/volume/src/chat/chat.gateway.ts b/back/volume/src/chat/chat.gateway.ts index e61ec65..d5c19d0 100644 --- a/back/volume/src/chat/chat.gateway.ts +++ b/back/volume/src/chat/chat.gateway.ts @@ -35,9 +35,7 @@ export class ChatGateway implements OnGatewayConnection, OnGatewayDisconnect { private readonly connectedUserRepository: Repository ) {} - async handleConnection (socket: Socket): Promise { - console.log('Client connected: ' + socket.id) - } + async handleConnection (socket: Socket): Promise {} handleDisconnect (socket: Socket): void { socket.disconnect() diff --git a/back/volume/src/pong/pong.gateway.spec.ts b/back/volume/src/pong/pong.gateway.spec.ts deleted file mode 100644 index f779c23..0000000 --- a/back/volume/src/pong/pong.gateway.spec.ts +++ /dev/null @@ -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) - }) - - it('should be defined', () => { - expect(gateway).toBeDefined() - }) -}) diff --git a/back/volume/src/pong/pong.spec.ts b/back/volume/src/pong/pong.spec.ts deleted file mode 100644 index b11fd5b..0000000 --- a/back/volume/src/pong/pong.spec.ts +++ /dev/null @@ -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) - }) - - it('should be defined', () => { - expect(provider).toBeDefined() - }) -})