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';
});
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();
});
});