1234567891011121314 |
- import type {Location} from 'history';
- export function LocationFixture(params: Partial<Location> = {}): Location {
- return {
- key: '',
- search: '',
- hash: '',
- action: 'PUSH',
- state: null,
- query: {},
- pathname: '/mock-pathname/',
- ...params,
- };
- }
|