locationFixture.tsx 366 B

1234567891011121314151617
  1. import type {Location} from 'history';
  2. export function LocationFixture(params: Partial<Location> = {}): Location {
  3. return {
  4. key: '',
  5. search: '',
  6. hash: '',
  7. action: 'PUSH',
  8. state: null,
  9. query: {},
  10. pathname: '/mock-pathname/',
  11. ...params,
  12. };
  13. }
  14. // TODO(epurkhiser): Remove once removed from getsentry
  15. export default LocationFixture;