Commit 9996fb51 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰 Committed by Tomek Mrugalski

[#164] HostsPageComponent fixed

parent 26df7a4a
......@@ -8,6 +8,12 @@ import { HttpClient, HttpHandler } from '@angular/common/http'
import { ActivatedRoute, Router } from '@angular/router'
import { of } from 'rxjs'
class MockParamMap {
get(name: string): string | null {
return null
}
}
describe('HostsPageComponent', () => {
let component: HostsPageComponent
let fixture: ComponentFixture<HostsPageComponent>
......@@ -21,8 +27,8 @@ describe('HostsPageComponent', () => {
{
provide: ActivatedRoute,
useValue: {
snapshot: { queryParams: {} },
queryParamMap: of({}),
snapshot: { queryParamMap: new MockParamMap() },
queryParamMap: of(new MockParamMap()),
},
},
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment