mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
15 lines
277 B
TypeScript
15 lines
277 B
TypeScript
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,
|
|
};
|
|
}
|