diff --git a/packages/react-router/__tests__/useLocation-test.tsx b/packages/react-router/__tests__/useLocation-test.tsx index 7b308c26aa..66d185b64a 100644 --- a/packages/react-router/__tests__/useLocation-test.tsx +++ b/packages/react-router/__tests__/useLocation-test.tsx @@ -6,7 +6,7 @@ describe("useLocation", () => { it("returns the current location object", () => { function Home() { let { pathname, search, hash } = useLocation(); - return
{JSON.stringify({ location: pathname, search, hash })}
; + return
{JSON.stringify({ pathname, search, hash })}
; } let renderer: TestRenderer.ReactTestRenderer; @@ -22,7 +22,7 @@ describe("useLocation", () => { expect(renderer.toJSON()).toMatchInlineSnapshot(`
-        {"location":"/home","search":"?the=search","hash":"#the-hash"}
+        {"pathname":"/home","search":"?the=search","hash":"#the-hash"}
       
`); });