1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3 import { WidgetCatalogComponent } from './widget-catalog.component';
4 import { HttpClientTestingModule } from '@angular/common/http/testing';
5 import { FormsModule } from '@angular/forms';
6 import { NgMaterialModule } from 'src/app/ng-material-module';
7 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
8 import { GridsterModule } from 'angular-gridster2';
9 import { ElipsisPipe } from 'src/app/shared/pipes/elipsis/elipsis.pipe';
10 import { Component, Input } from '@angular/core';
12 describe('WidgetCatalogComponent', () => {
13 let component: WidgetCatalogComponent;
14 let fixture: ComponentFixture<WidgetCatalogComponent>;
16 beforeEach(async(() => {
17 TestBed.configureTestingModule({
18 declarations: [ WidgetCatalogComponent ,ElipsisPipe,AppDynamicWidgetStubComponent],
19 imports:[HttpClientTestingModule,FormsModule,NgMaterialModule,BrowserAnimationsModule,GridsterModule]
25 fixture = TestBed.createComponent(WidgetCatalogComponent);
26 component = fixture.componentInstance;
27 fixture.detectChanges();
30 it('should create', () => {
31 expect(component).toBeTruthy();
35 @Component({selector: 'app-dynamic-widget', template: ''})
36 class AppDynamicWidgetStubComponent {
37 @Input() widgetType:any;