From baad76ddc52fc53b03a787e3ae76154e5aeb2d07 Mon Sep 17 00:00:00 2001 From: Christopher Graney-Ward Date: Fri, 21 Jun 2024 00:57:16 +0100 Subject: [PATCH] Delete unecessary code --- src/services/api/api.contoller.test.ts | 1 - src/services/auth/auth.controller.test.ts | 1 - src/services/auth/auth.middleware.spec.ts | 4 ---- src/services/uploader/uploading.controller.test.ts | 1 - 4 files changed, 7 deletions(-) diff --git a/src/services/api/api.contoller.test.ts b/src/services/api/api.contoller.test.ts index 10f2c68..c77efea 100644 --- a/src/services/api/api.contoller.test.ts +++ b/src/services/api/api.contoller.test.ts @@ -38,7 +38,6 @@ describe('ApiController', () => { const uri = mongod.getUri(); process.env.JWT_PRIVATE_KEY = crypto.randomBytes(64).toString('hex'); - process.env.ENVIRONMENT = 'local' @Module({ imports: [ diff --git a/src/services/auth/auth.controller.test.ts b/src/services/auth/auth.controller.test.ts index 8b5ff9a..5e17c04 100644 --- a/src/services/auth/auth.controller.test.ts +++ b/src/services/auth/auth.controller.test.ts @@ -36,7 +36,6 @@ describe('AuthController', () => { const uri: string = mongod.getUri() process.env.JWT_PRIVATE_KEY = crypto.randomBytes(64).toString('hex'); - process.env.ENVIRONMENT = 'local' @Module({ imports: [ diff --git a/src/services/auth/auth.middleware.spec.ts b/src/services/auth/auth.middleware.spec.ts index 0283462..e573c23 100644 --- a/src/services/auth/auth.middleware.spec.ts +++ b/src/services/auth/auth.middleware.spec.ts @@ -34,10 +34,6 @@ describe('AuthMiddleware', () => { const key = new Ed25519Provider(seedBuf) const did = new DID({ provider: key, resolver: KeyResolver.getResolver() }) - beforeAll(() => { - process.env.ENVIRONMENT = 'local' - }) - beforeEach(() => { authMiddleware = new AuthMiddleware(); }); diff --git a/src/services/uploader/uploading.controller.test.ts b/src/services/uploader/uploading.controller.test.ts index 9215b2a..9b82452 100644 --- a/src/services/uploader/uploading.controller.test.ts +++ b/src/services/uploader/uploading.controller.test.ts @@ -31,7 +31,6 @@ describe('UploadingController', () => { const uri = mongod.getUri(); process.env.JWT_PRIVATE_KEY = crypto.randomBytes(64).toString('hex'); - process.env.ENVIRONMENT = 'local' @Module({ imports: [