X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=portal-FE-common%2Fsrc%2Fapp%2Fpages%2Fdashboard-widget-catalog%2Fdashboard-widget-catalog.component.spec.ts;h=768895a738939203a796386ce7bcd748ef7f68dd;hb=4c6f6a443cb2e6effa995e77d56689c1c2dab4ad;hp=7ae5f770b98802186d96ecdef3944f4a19c4f11b;hpb=a03dfa273ef6e196bf65acc54b9357d35eb0ed5e;p=portal.git diff --git a/portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.spec.ts b/portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.spec.ts index 7ae5f770..768895a7 100644 --- a/portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.spec.ts +++ b/portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.spec.ts @@ -38,14 +38,21 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { DashboardWidgetCatalogComponent } from './dashboard-widget-catalog.component'; +import { Component, Input } from '@angular/core'; +import { NgMaterialModule } from 'src/app/ng-material-module'; +import { GridsterModule } from 'angular-gridster2'; +import { ElipsisPipe } from 'src/app/shared/pipes/elipsis/elipsis.pipe'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; describe('DashboardWidgetCatalogComponent', () => { let component: DashboardWidgetCatalogComponent; let fixture: ComponentFixture; + beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ DashboardWidgetCatalogComponent ] + declarations: [ DashboardWidgetCatalogComponent,AppDynamicWidgetStubComponent,ElipsisPipe ], + imports:[NgMaterialModule,GridsterModule,HttpClientTestingModule] }) .compileComponents(); })); @@ -60,3 +67,8 @@ describe('DashboardWidgetCatalogComponent', () => { expect(component).toBeTruthy(); }); }); + +@Component({selector: 'app-dynamic-widget', template: ''}) +class AppDynamicWidgetStubComponent { + @Input() widgetType:any; +} \ No newline at end of file