test
This commit is contained in:
parent
9de11da170
commit
c3714c02ba
|
@ -85,7 +85,6 @@ describe('AnnouncementService', () => {
|
||||||
})
|
})
|
||||||
.compile();
|
.compile();
|
||||||
|
|
||||||
await app.init();
|
|
||||||
app.enableShutdownHooks();
|
app.enableShutdownHooks();
|
||||||
|
|
||||||
announcementService = app.get<AnnouncementService>(AnnouncementService);
|
announcementService = app.get<AnnouncementService>(AnnouncementService);
|
||||||
|
|
|
@ -23,7 +23,6 @@ describe('DriveService', () => {
|
||||||
imports: [GlobalModule, CoreModule],
|
imports: [GlobalModule, CoreModule],
|
||||||
providers: [DriveService],
|
providers: [DriveService],
|
||||||
}).compile();
|
}).compile();
|
||||||
await app.init();
|
|
||||||
app.enableShutdownHooks();
|
app.enableShutdownHooks();
|
||||||
driveService = app.get<DriveService>(DriveService);
|
driveService = app.get<DriveService>(DriveService);
|
||||||
});
|
});
|
||||||
|
|
|
@ -58,7 +58,6 @@ describe('FetchInstanceMetadataService', () => {
|
||||||
}})
|
}})
|
||||||
.compile();
|
.compile();
|
||||||
|
|
||||||
await app.init();
|
|
||||||
app.enableShutdownHooks();
|
app.enableShutdownHooks();
|
||||||
|
|
||||||
fetchInstanceMetadataService = app.get<FetchInstanceMetadataService>(FetchInstanceMetadataService);
|
fetchInstanceMetadataService = app.get<FetchInstanceMetadataService>(FetchInstanceMetadataService);
|
||||||
|
|
|
@ -50,7 +50,6 @@ describe('FileInfoService', () => {
|
||||||
})
|
})
|
||||||
.compile();
|
.compile();
|
||||||
|
|
||||||
await app.init();
|
|
||||||
app.enableShutdownHooks();
|
app.enableShutdownHooks();
|
||||||
|
|
||||||
fileInfoService = app.get<FileInfoService>(FileInfoService);
|
fileInfoService = app.get<FileInfoService>(FileInfoService);
|
||||||
|
|
|
@ -28,7 +28,6 @@ describe('MetaService', () => {
|
||||||
],
|
],
|
||||||
}).compile();
|
}).compile();
|
||||||
|
|
||||||
await app.init();
|
|
||||||
app.enableShutdownHooks();
|
app.enableShutdownHooks();
|
||||||
|
|
||||||
metaService = app.get<MetaService>(MetaService, { strict: false });
|
metaService = app.get<MetaService>(MetaService, { strict: false });
|
||||||
|
|
|
@ -18,7 +18,6 @@ describe('MfmService', () => {
|
||||||
const app = await Test.createTestingModule({
|
const app = await Test.createTestingModule({
|
||||||
imports: [GlobalModule, CoreModule],
|
imports: [GlobalModule, CoreModule],
|
||||||
}).compile();
|
}).compile();
|
||||||
await app.init();
|
|
||||||
mfmService = app.get<MfmService>(MfmService);
|
mfmService = app.get<MfmService>(MfmService);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ describe('ReactionService', () => {
|
||||||
const app = await Test.createTestingModule({
|
const app = await Test.createTestingModule({
|
||||||
imports: [GlobalModule, CoreModule],
|
imports: [GlobalModule, CoreModule],
|
||||||
}).compile();
|
}).compile();
|
||||||
await app.init();
|
|
||||||
reactionService = app.get<ReactionService>(ReactionService);
|
reactionService = app.get<ReactionService>(ReactionService);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,6 @@ describe('RelayService', () => {
|
||||||
})
|
})
|
||||||
.compile();
|
.compile();
|
||||||
|
|
||||||
await app.init();
|
|
||||||
app.enableShutdownHooks();
|
app.enableShutdownHooks();
|
||||||
|
|
||||||
relayService = app.get<RelayService>(RelayService);
|
relayService = app.get<RelayService>(RelayService);
|
||||||
|
|
|
@ -87,7 +87,6 @@ describe('RoleService', () => {
|
||||||
})
|
})
|
||||||
.compile();
|
.compile();
|
||||||
|
|
||||||
await app.init();
|
|
||||||
app.enableShutdownHooks();
|
app.enableShutdownHooks();
|
||||||
|
|
||||||
roleService = app.get<RoleService>(RoleService);
|
roleService = app.get<RoleService>(RoleService);
|
||||||
|
|
|
@ -24,7 +24,6 @@ describe('S3Service', () => {
|
||||||
imports: [GlobalModule, CoreModule],
|
imports: [GlobalModule, CoreModule],
|
||||||
providers: [S3Service],
|
providers: [S3Service],
|
||||||
}).compile();
|
}).compile();
|
||||||
await app.init();
|
|
||||||
app.enableShutdownHooks();
|
app.enableShutdownHooks();
|
||||||
s3Service = app.get<S3Service>(S3Service);
|
s3Service = app.get<S3Service>(S3Service);
|
||||||
});
|
});
|
||||||
|
|
|
@ -114,7 +114,6 @@ describe('ActivityPub', () => {
|
||||||
},
|
},
|
||||||
}).compile();
|
}).compile();
|
||||||
|
|
||||||
await app.init();
|
|
||||||
app.enableShutdownHooks();
|
app.enableShutdownHooks();
|
||||||
|
|
||||||
noteService = app.get<ApNoteService>(ApNoteService);
|
noteService = app.get<ApNoteService>(ApNoteService);
|
||||||
|
|
Loading…
Reference in a new issue