summaryrefslogtreecommitdiffstats
path: root/portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.spec.ts
diff options
context:
space:
mode:
Diffstat (limited to 'portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.spec.ts')
-rw-r--r--portal-FE-common/src/app/pages/dashboard-widget-catalog/dashboard-widget-catalog.component.spec.ts14
1 files changed, 13 insertions, 1 deletions
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<DashboardWidgetCatalogComponent>;
+
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