Add isSectionTypeAvailable method and use it to check if upload section is available

This commit is contained in:
Giuseppe Digilio
2021-04-02 15:22:17 +02:00
committed by lotte
parent d3763ea642
commit 13c239cbc3
5 changed files with 136 additions and 12 deletions

View File

@@ -55,7 +55,7 @@ describe('SubmissionFormComponent Component', () => {
{ provide: AuthService, useClass: AuthServiceStub },
{ provide: HALEndpointService, useValue: new HALEndpointServiceStub('workspaceitems') },
{ provide: SubmissionService, useValue: submissionServiceStub },
{ provide: SectionsService, useValue: { isSectionAvailable: () => observableOf(true) } },
{ provide: SectionsService, useValue: { isSectionTypeAvailable: () => observableOf(true) } },
ChangeDetectorRef,
SubmissionFormComponent
],