X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=portal-FE-common%2Fsrc%2Fapp%2Fpages%2Frole%2Fadd-role%2Fadd-role.component.spec.ts;h=1894fa8a588ad61fdef21af3be4e43d69f9fed0b;hb=4c6f6a443cb2e6effa995e77d56689c1c2dab4ad;hp=1104010d22146fc12606f3a5ce7ee39118e7697f;hpb=a03dfa273ef6e196bf65acc54b9357d35eb0ed5e;p=portal.git diff --git a/portal-FE-common/src/app/pages/role/add-role/add-role.component.spec.ts b/portal-FE-common/src/app/pages/role/add-role/add-role.component.spec.ts index 1104010d..1894fa8a 100644 --- a/portal-FE-common/src/app/pages/role/add-role/add-role.component.spec.ts +++ b/portal-FE-common/src/app/pages/role/add-role/add-role.component.spec.ts @@ -38,6 +38,10 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { AddRoleComponent } from './add-role.component'; +import { FormsModule } from '@angular/forms'; +import { NgMaterialModule } from 'src/app/ng-material-module'; +import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; describe('AddRoleComponent', () => { let component: AddRoleComponent; @@ -45,7 +49,9 @@ describe('AddRoleComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ AddRoleComponent ] + declarations: [ AddRoleComponent ], + imports:[FormsModule,NgMaterialModule,HttpClientTestingModule], + providers:[NgbActiveModal] }) .compileComponents(); }));