X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=portal-FE-common%2Fsrc%2Fapp%2Fpages%2Fusers%2Fbulk-user%2Fbulk-user.component.spec.ts;h=b16dbc7ab3c7932f0286cd7d8909a26d3a31ece4;hb=refs%2Fchanges%2F84%2F102584%2F3;hp=05b04a96caa6f4fed384c15b4b06eabc8ea35098;hpb=a03dfa273ef6e196bf65acc54b9357d35eb0ed5e;p=portal.git diff --git a/portal-FE-common/src/app/pages/users/bulk-user/bulk-user.component.spec.ts b/portal-FE-common/src/app/pages/users/bulk-user/bulk-user.component.spec.ts index 05b04a96..b16dbc7a 100644 --- a/portal-FE-common/src/app/pages/users/bulk-user/bulk-user.component.spec.ts +++ b/portal-FE-common/src/app/pages/users/bulk-user/bulk-user.component.spec.ts @@ -38,14 +38,22 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { BulkUserComponent } from './bulk-user.component'; +import { FormsModule } from '@angular/forms'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { NgMaterialModule } from 'src/app/ng-material-module'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; describe('BulkUserComponent', () => { let component: BulkUserComponent; let fixture: ComponentFixture; + const adminsAppsData:any =[{"titel":"TestDummyTitle"}]; beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ BulkUserComponent ] + declarations: [ BulkUserComponent ], + imports:[FormsModule,HttpClientTestingModule,NgMaterialModule,BrowserAnimationsModule], + providers:[NgbActiveModal] }) .compileComponents(); })); @@ -53,6 +61,7 @@ describe('BulkUserComponent', () => { beforeEach(() => { fixture = TestBed.createComponent(BulkUserComponent); component = fixture.componentInstance; + component.adminsAppsData = adminsAppsData; fixture.detectChanges(); });