mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 21:13:07 +00:00
87968: Upgrade ng-bootstrap to v11
Some tests involving NgbModal now fail if setup with mock Injector without `get` method
This commit is contained in:
@@ -57,14 +57,14 @@ describe('ClaimedTaskActionsRejectComponent', () => {
|
||||
declarations: [ClaimedTaskActionsRejectComponent],
|
||||
providers: [
|
||||
{ provide: ClaimedTaskDataService, useValue: claimedTaskService },
|
||||
{ provide: Injector, useValue: {} },
|
||||
Injector,
|
||||
{ provide: NotificationsService, useValue: new NotificationsServiceStub() },
|
||||
{ provide: Router, useValue: new RouterStub() },
|
||||
{ provide: SearchService, useValue: searchService },
|
||||
{ provide: RequestService, useValue: requestService },
|
||||
{ provide: PoolTaskDataService, useValue: mockPoolTaskDataService },
|
||||
FormBuilder,
|
||||
NgbModal
|
||||
NgbModal,
|
||||
],
|
||||
schemas: [NO_ERRORS_SCHEMA]
|
||||
}).overrideComponent(ClaimedTaskActionsRejectComponent, {
|
||||
|
@@ -86,7 +86,7 @@ describe('WorkspaceitemActionsComponent', () => {
|
||||
],
|
||||
declarations: [WorkspaceitemActionsComponent],
|
||||
providers: [
|
||||
{ provide: Injector, useValue: {} },
|
||||
Injector,
|
||||
{ provide: NotificationsService, useValue: new NotificationsServiceStub() },
|
||||
{ provide: Router, useValue: new RouterStub() },
|
||||
{ provide: WorkspaceitemDataService, useValue: mockDataService },
|
||||
|
Reference in New Issue
Block a user