mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
Add isSectionTypeAvailable method and use it to check if upload section is available
This commit is contained in:
@@ -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
|
||||
],
|
||||
|
Reference in New Issue
Block a user