Fixed the test cases,added sonar config
[portal.git] / portal-FE-common / src / app / pages / web-analytics / web-analytics.component.spec.ts
index 76d44cc..93fde8d 100644 (file)
 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
 
 import { WebAnalyticsComponent } from './web-analytics.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('WebAnalyticsComponent', () => {
   let component: WebAnalyticsComponent;
@@ -46,7 +50,9 @@ describe('WebAnalyticsComponent', () => {
 
   beforeEach(async(() => {
     TestBed.configureTestingModule({
-      declarations: [ WebAnalyticsComponent ]
+      declarations: [ WebAnalyticsComponent ],
+      imports:[HttpClientTestingModule,FormsModule,NgMaterialModule,BrowserAnimationsModule],
+
     })
     .compileComponents();
   }));