From cb6bd9f409356a5442a2414f1f91b4931aa37021 Mon Sep 17 00:00:00 2001 From: Mathis Date: Thu, 26 Sep 2024 14:56:18 +0200 Subject: [PATCH] Remove Machine module and related files Deleted MachineController, MachineModule, and associated tests to streamline the codebase. This simplifies the project structure by removing unused or redundant components. --- .../app/machine/machine.controller.spec.ts | 20 ------------------- .../src/app/machine/machine.controller.ts | 7 ------- .../backend/src/app/machine/machine.module.ts | 9 --------- 3 files changed, 36 deletions(-) delete mode 100644 apps/backend/src/app/machine/machine.controller.spec.ts delete mode 100644 apps/backend/src/app/machine/machine.controller.ts delete mode 100644 apps/backend/src/app/machine/machine.module.ts diff --git a/apps/backend/src/app/machine/machine.controller.spec.ts b/apps/backend/src/app/machine/machine.controller.spec.ts deleted file mode 100644 index ecd79d1..0000000 --- a/apps/backend/src/app/machine/machine.controller.spec.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Test, TestingModule } from '@nestjs/testing'; -import { MachineController } from './machine.controller'; -import { MachineService } from './machine.service'; - -describe('MachineController', () => { - let controller: MachineController; - - beforeEach(async () => { - const module: TestingModule = await Test.createTestingModule({ - controllers: [MachineController], - providers: [MachineService], - }).compile(); - - controller = module.get(MachineController); - }); - - it('should be defined', () => { - expect(controller).toBeDefined(); - }); -}); diff --git a/apps/backend/src/app/machine/machine.controller.ts b/apps/backend/src/app/machine/machine.controller.ts deleted file mode 100644 index ecc3648..0000000 --- a/apps/backend/src/app/machine/machine.controller.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Controller } from '@nestjs/common'; -import { MachineService } from './machine.service'; - -@Controller('machine') -export class MachineController { - constructor(private readonly machineService: MachineService) {} -} diff --git a/apps/backend/src/app/machine/machine.module.ts b/apps/backend/src/app/machine/machine.module.ts deleted file mode 100644 index 9f8a16f..0000000 --- a/apps/backend/src/app/machine/machine.module.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Module } from '@nestjs/common'; -import { MachineService } from './machine.service'; -import { MachineController } from './machine.controller'; - -@Module({ - controllers: [MachineController], - providers: [MachineService], -}) -export class MachineModule {}