Changed to use TestBed.inject method instead of deprecated TestBed.get

This commit is contained in:
Giuseppe Digilio
2020-11-20 15:21:34 +01:00
parent 32dc9a80a6
commit 79285b203b
80 changed files with 2269 additions and 2635 deletions

View File

@@ -106,10 +106,10 @@ describe('SubmissionUploadFilesComponent Component', () => {
fixture = TestBed.createComponent(SubmissionUploadFilesComponent);
comp = fixture.componentInstance;
compAsAny = comp;
submissionServiceStub = TestBed.get(SubmissionService);
sectionsServiceStub = TestBed.get(SectionsService);
notificationsServiceStub = TestBed.get(NotificationsService);
translateService = TestBed.get(TranslateService);
submissionServiceStub = TestBed.inject(SubmissionService as any);
sectionsServiceStub = TestBed.inject(SectionsService as any);
notificationsServiceStub = TestBed.inject(NotificationsService as any);
translateService = TestBed.inject(TranslateService);
comp.submissionId = submissionId;
comp.collectionId = collectionId;
comp.sectionId = 'upload';