Fixed the test cases,added sonar config
[portal.git] / portal-FE-common / src / app / shared / services / widget-catalog / widget-catalog.service.spec.ts
index fb87e8b..bceef7c 100644 (file)
 import { TestBed } from '@angular/core/testing';
 
 import { WidgetCatalogService } from './widget-catalog.service';
+import { HttpClientTestingModule } from '@angular/common/http/testing';
 
 describe('WidgetCatalogService', () => {
-  beforeEach(() => TestBed.configureTestingModule({}));
+  beforeEach(() => TestBed.configureTestingModule({imports:[HttpClientTestingModule]}));
 
   it('should be created', () => {
     const service: WidgetCatalogService = TestBed.get(WidgetCatalogService);