Commit b5a3823f authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰 Committed by Tomek Mrugalski

[#164] UsersPageComponent fixed

parent 331a9a52
...@@ -8,6 +8,12 @@ import { HttpClient, HttpHandler } from '@angular/common/http' ...@@ -8,6 +8,12 @@ import { HttpClient, HttpHandler } from '@angular/common/http'
import { MessageService } from 'primeng/api' import { MessageService } from 'primeng/api'
import { of } from 'rxjs' import { of } from 'rxjs'
class MockParamMap {
get(name: string): string | null {
return null
}
}
describe('UsersPageComponent', () => { describe('UsersPageComponent', () => {
let component: UsersPageComponent let component: UsersPageComponent
let fixture: ComponentFixture<UsersPageComponent> let fixture: ComponentFixture<UsersPageComponent>
...@@ -25,7 +31,7 @@ describe('UsersPageComponent', () => { ...@@ -25,7 +31,7 @@ describe('UsersPageComponent', () => {
{ {
provide: ActivatedRoute, provide: ActivatedRoute,
useValue: { useValue: {
paramMap: of({}), paramMap: 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