We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f17295f commit 74bf0ebCopy full SHA for 74bf0eb
packages/react-router/__tests__/useLocation-test.tsx
@@ -6,7 +6,7 @@ describe("useLocation", () => {
6
it("returns the current location object", () => {
7
function Home() {
8
let { pathname, search, hash } = useLocation();
9
- return <pre>{JSON.stringify({ location: pathname, search, hash })}</pre>;
+ return <pre>{JSON.stringify({ pathname, search, hash })}</pre>;
10
}
11
12
let renderer: TestRenderer.ReactTestRenderer;
@@ -22,7 +22,7 @@ describe("useLocation", () => {
22
23
expect(renderer.toJSON()).toMatchInlineSnapshot(`
24
<pre>
25
- {"location":"/home","search":"?the=search","hash":"#the-hash"}
+ {"pathname":"/home","search":"?the=search","hash":"#the-hash"}
26
</pre>
27
`);
28
});
0 commit comments