1
0

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:
Yura Bondarenko
2022-03-21 16:03:17 +01:00
parent 5488d0f83a
commit 59d46ffbdf
4 changed files with 9 additions and 9 deletions

View File

@@ -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",

View File

@@ -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, {

View File

@@ -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 },

View File

@@ -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"