1 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
3 import { RunReportFormFieldsComponent } from './run-report-form-fields.component';
5 describe('RunReportFormFieldsComponent', () => {
6 let component: RunReportFormFieldsComponent;
7 let fixture: ComponentFixture<RunReportFormFieldsComponent>;
9 beforeEach(async(() => {
10 TestBed.configureTestingModule({
11 declarations: [ RunReportFormFieldsComponent ]
17 fixture = TestBed.createComponent(RunReportFormFieldsComponent);
18 component = fixture.componentInstance;
19 fixture.detectChanges();
22 it('should create', () => {
23 expect(component).toBeTruthy();
26 it('should test ngOnInit method', () =>{
28 expect(component.showSpinner).toEqual(true);
29 expect(component.navigateToRun).toEqual(false);
32 it('should test QueryString method', () =>{
33 component.directCallQueryParams == "test";
34 component.getQueryString();
35 expect(component.getQueryString).toEqual("test");