From c3714c02ba5efc3a40339f59bf3a824d0307127a Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 3 Oct 2023 16:26:58 +0900 Subject: [PATCH] test --- packages/backend/test/unit/AnnouncementService.ts | 1 - packages/backend/test/unit/DriveService.ts | 1 - packages/backend/test/unit/FetchInstanceMetadataService.ts | 1 - packages/backend/test/unit/FileInfoService.ts | 1 - packages/backend/test/unit/MetaService.ts | 1 - packages/backend/test/unit/MfmService.ts | 1 - packages/backend/test/unit/ReactionService.ts | 1 - packages/backend/test/unit/RelayService.ts | 1 - packages/backend/test/unit/RoleService.ts | 1 - packages/backend/test/unit/S3Service.ts | 1 - packages/backend/test/unit/activitypub.ts | 1 - 11 files changed, 11 deletions(-) diff --git a/packages/backend/test/unit/AnnouncementService.ts b/packages/backend/test/unit/AnnouncementService.ts index 55924b5609..8f61d91ba9 100644 --- a/packages/backend/test/unit/AnnouncementService.ts +++ b/packages/backend/test/unit/AnnouncementService.ts @@ -85,7 +85,6 @@ describe('AnnouncementService', () => { }) .compile(); - await app.init(); app.enableShutdownHooks(); announcementService = app.get(AnnouncementService); diff --git a/packages/backend/test/unit/DriveService.ts b/packages/backend/test/unit/DriveService.ts index 79e99c7583..7234da2e36 100644 --- a/packages/backend/test/unit/DriveService.ts +++ b/packages/backend/test/unit/DriveService.ts @@ -23,7 +23,6 @@ describe('DriveService', () => { imports: [GlobalModule, CoreModule], providers: [DriveService], }).compile(); - await app.init(); app.enableShutdownHooks(); driveService = app.get(DriveService); }); diff --git a/packages/backend/test/unit/FetchInstanceMetadataService.ts b/packages/backend/test/unit/FetchInstanceMetadataService.ts index 5652f84e88..34200899d4 100644 --- a/packages/backend/test/unit/FetchInstanceMetadataService.ts +++ b/packages/backend/test/unit/FetchInstanceMetadataService.ts @@ -58,7 +58,6 @@ describe('FetchInstanceMetadataService', () => { }}) .compile(); - await app.init(); app.enableShutdownHooks(); fetchInstanceMetadataService = app.get(FetchInstanceMetadataService); diff --git a/packages/backend/test/unit/FileInfoService.ts b/packages/backend/test/unit/FileInfoService.ts index 6bf69a23da..de0b31488c 100644 --- a/packages/backend/test/unit/FileInfoService.ts +++ b/packages/backend/test/unit/FileInfoService.ts @@ -50,7 +50,6 @@ describe('FileInfoService', () => { }) .compile(); - await app.init(); app.enableShutdownHooks(); fileInfoService = app.get(FileInfoService); diff --git a/packages/backend/test/unit/MetaService.ts b/packages/backend/test/unit/MetaService.ts index 98c269ecd0..ab30f48283 100644 --- a/packages/backend/test/unit/MetaService.ts +++ b/packages/backend/test/unit/MetaService.ts @@ -28,7 +28,6 @@ describe('MetaService', () => { ], }).compile(); - await app.init(); app.enableShutdownHooks(); metaService = app.get(MetaService, { strict: false }); diff --git a/packages/backend/test/unit/MfmService.ts b/packages/backend/test/unit/MfmService.ts index 594f39455d..bb8e6981d5 100644 --- a/packages/backend/test/unit/MfmService.ts +++ b/packages/backend/test/unit/MfmService.ts @@ -18,7 +18,6 @@ describe('MfmService', () => { const app = await Test.createTestingModule({ imports: [GlobalModule, CoreModule], }).compile(); - await app.init(); mfmService = app.get(MfmService); }); diff --git a/packages/backend/test/unit/ReactionService.ts b/packages/backend/test/unit/ReactionService.ts index 8ee2c17449..7b5bf7d0a0 100644 --- a/packages/backend/test/unit/ReactionService.ts +++ b/packages/backend/test/unit/ReactionService.ts @@ -17,7 +17,6 @@ describe('ReactionService', () => { const app = await Test.createTestingModule({ imports: [GlobalModule, CoreModule], }).compile(); - await app.init(); reactionService = app.get(ReactionService); }); diff --git a/packages/backend/test/unit/RelayService.ts b/packages/backend/test/unit/RelayService.ts index e43e102bb9..f780a25388 100644 --- a/packages/backend/test/unit/RelayService.ts +++ b/packages/backend/test/unit/RelayService.ts @@ -54,7 +54,6 @@ describe('RelayService', () => { }) .compile(); - await app.init(); app.enableShutdownHooks(); relayService = app.get(RelayService); diff --git a/packages/backend/test/unit/RoleService.ts b/packages/backend/test/unit/RoleService.ts index 3a2de024fb..c6a14702ae 100644 --- a/packages/backend/test/unit/RoleService.ts +++ b/packages/backend/test/unit/RoleService.ts @@ -87,7 +87,6 @@ describe('RoleService', () => { }) .compile(); - await app.init(); app.enableShutdownHooks(); roleService = app.get(RoleService); diff --git a/packages/backend/test/unit/S3Service.ts b/packages/backend/test/unit/S3Service.ts index 7a650fc1b5..c1eafc96b7 100644 --- a/packages/backend/test/unit/S3Service.ts +++ b/packages/backend/test/unit/S3Service.ts @@ -24,7 +24,6 @@ describe('S3Service', () => { imports: [GlobalModule, CoreModule], providers: [S3Service], }).compile(); - await app.init(); app.enableShutdownHooks(); s3Service = app.get(S3Service); }); diff --git a/packages/backend/test/unit/activitypub.ts b/packages/backend/test/unit/activitypub.ts index dbc446d12d..4ca1dcad0e 100644 --- a/packages/backend/test/unit/activitypub.ts +++ b/packages/backend/test/unit/activitypub.ts @@ -114,7 +114,6 @@ describe('ActivityPub', () => { }, }).compile(); - await app.init(); app.enableShutdownHooks(); noteService = app.get(ApNoteService);