Fixed the test cases,added sonar config
[portal.git] / portal-FE-common / src / app / pages / widgets / widgets.component.spec.ts
1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
2
3 import { WidgetsComponent } from './widgets.component';
4 import { HttpClientTestingModule } from '@angular/common/http/testing';
5 import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
6
7 describe('WidgetsComponent', () => {
8   let component: WidgetsComponent;
9   let fixture: ComponentFixture<WidgetsComponent>;
10
11   beforeEach(async(() => {
12     TestBed.configureTestingModule({
13       declarations: [ WidgetsComponent ],
14       imports:[HttpClientTestingModule,BrowserAnimationsModule]
15     })
16     .compileComponents();
17   }));
18
19   beforeEach(() => {
20     fixture = TestBed.createComponent(WidgetsComponent);
21     component = fixture.componentInstance;
22     fixture.detectChanges();
23   });
24
25   it('should create', () => {
26     expect(component).toBeTruthy();
27   });
28 });