]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/core/auth/login/login.component.spec.ts
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / core / auth / login / login.component.spec.ts
index daa96f34e8bfda92edd00912fa19859a81d770cf..15a7275739f36d08c088bd0ba1238bbf6182b8f2 100644 (file)
@@ -2,7 +2,7 @@ import { HttpClientTestingModule } from '@angular/common/http/testing';
 import { ComponentFixture, TestBed } from '@angular/core/testing';
 import { RouterTestingModule } from '@angular/router/testing';
 
-import { configureTestBed } from '../../../../testing/unit-test-helper';
+import { configureTestBed } from '~/testing/unit-test-helper';
 import { AuthModule } from '../auth.module';
 import { LoginComponent } from './login.component';
 
@@ -25,8 +25,8 @@ describe('LoginComponent', () => {
   });
 
   it('should ensure no modal dialogs are opened', () => {
-    component['bsModalService']['modalsCount'] = 2;
+    component['modalService']['modalsCount'] = 2;
     component.ngOnInit();
-    expect(component['bsModalService'].getModalsCount()).toBe(0);
+    expect(component['modalService'].hasOpenModals()).toBeFalsy();
   });
 });