(params: Partial<Location> = {})
| 1 | import type {Location} from 'history'; |
| 2 | |
| 3 | export function LocationFixture(params: Partial<Location> = {}): Location { |
| 4 | return { |
| 5 | key: '', |
| 6 | search: '', |
| 7 | hash: '', |
| 8 | action: 'PUSH', |
| 9 | state: null, |
| 10 | query: {}, |
| 11 | pathname: '/mock-pathname/', |
| 12 | ...params, |
| 13 | }; |
| 14 | } |
no outgoing calls