Fixed the test cases,added sonar config
[portal.git] / portal-FE-common / src / app / shared / plugin / dynamic-widget / list-widget / list-widget.component.spec.ts
index d799193..6a36704 100644 (file)
 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { ListWidgetComponent } from './list-widget.component';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
+import { FormsModule } from '@angular/forms';
+import { NgMaterialModule } from 'src/app/ng-material-module';
+import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
 
 describe('ListWidgetComponent', () => {
   let component: ListWidgetComponent;
@@ -46,7 +50,9 @@ describe('ListWidgetComponent', () => {
 
   beforeEach(async(() => {
     TestBed.configureTestingModule({
-      declarations: [ ListWidgetComponent ]
+      declarations: [ ListWidgetComponent ],
+      imports:[HttpClientTestingModule,FormsModule,NgMaterialModule,BrowserAnimationsModule]
+
     })
     .compileComponents();
   }));