X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=portal-FE-common%2Fsrc%2Fapp%2Flayout%2Fcomponents%2Fglobal-search%2Fglobal-search.component.spec.ts;h=01879dd1f0537475c0c328839d592ec038d4e186;hb=4c6f6a443cb2e6effa995e77d56689c1c2dab4ad;hp=c37713775a9e9bbdb60a6e46fd8d2664a014d495;hpb=a03dfa273ef6e196bf65acc54b9357d35eb0ed5e;p=portal.git diff --git a/portal-FE-common/src/app/layout/components/global-search/global-search.component.spec.ts b/portal-FE-common/src/app/layout/components/global-search/global-search.component.spec.ts index c3771377..01879dd1 100644 --- a/portal-FE-common/src/app/layout/components/global-search/global-search.component.spec.ts +++ b/portal-FE-common/src/app/layout/components/global-search/global-search.component.spec.ts @@ -38,6 +38,8 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { GlobalSearchComponent } from './global-search.component'; +import { HttpClientTestingModule } from '@angular/common/http/testing'; +import { RouterTestingModule } from '@angular/router/testing'; describe('GlobalSearchComponent', () => { let component: GlobalSearchComponent; @@ -45,7 +47,8 @@ describe('GlobalSearchComponent', () => { beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ GlobalSearchComponent ] + declarations: [ GlobalSearchComponent ], + imports: [HttpClientTestingModule, RouterTestingModule] }) .compileComponents(); }));