expect(
    parseHistoryLocationPathname({ location: { pathname: "/search/ / /" } })
  ).toEqual({
    route: "search",
    query: null,