mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +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:
@@ -66,7 +66,7 @@
|
||||
"@kolkov/ngx-gallery": "^2.0.1",
|
||||
"@material-ui/core": "^4.11.0",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
"@ng-bootstrap/ng-bootstrap": "^10.0.0",
|
||||
"@ng-bootstrap/ng-bootstrap": "^11.0.0",
|
||||
"@ng-dynamic-forms/core": "^14.0.1",
|
||||
"@ng-dynamic-forms/ui-ng-bootstrap": "^14.0.1",
|
||||
"@ngrx/effects": "^13.0.2",
|
||||
|
@@ -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 },
|
||||
|
10
yarn.lock
10
yarn.lock
@@ -1563,12 +1563,12 @@
|
||||
prop-types "^15.7.2"
|
||||
react-is "^16.8.0 || ^17.0.0"
|
||||
|
||||
"@ng-bootstrap/ng-bootstrap@^10.0.0":
|
||||
version "10.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-10.0.0.tgz#6022927bac7029bdd12d7f1e10b5b20074db06dc"
|
||||
integrity sha512-Sz+QaxjuyJYJ+zyUbf0TevgcgVesCPQiiFiggEzxKjzY5R+Hvq3YgryLdXf2r/ryePL+C3FXCcmmKpTM5bfczQ==
|
||||
"@ng-bootstrap/ng-bootstrap@^11.0.0":
|
||||
version "11.0.0"
|
||||
resolved "https://registry.yarnpkg.com/@ng-bootstrap/ng-bootstrap/-/ng-bootstrap-11.0.0.tgz#16855620bff7ab7b965d4f49907c44b0f5bd5020"
|
||||
integrity sha512-qDnB0+jbpQ4wjXpM4NPRAtwmgTDUCjGavoeRDZHOvFfYvx/MBf1RTjZEqTJ1Yqq1pKP4BWpzxCgVTunfnpmsjA==
|
||||
dependencies:
|
||||
tslib "^2.1.0"
|
||||
tslib "^2.3.0"
|
||||
|
||||
"@ng-dynamic-forms/core@^14.0.1":
|
||||
version "14.0.1"
|
||||
|
Reference in New Issue
Block a user