Skip to content

Commit

Permalink
Update property name
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Nov 5, 2021
1 parent 851210c commit fe44c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-router/__tests__/useLocation-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("useLocation", () => {
it("returns the current location object", () => {
function Home() {
let { pathname, search, hash } = useLocation();
return <pre>{JSON.stringify({ location: pathname, search, hash })}</pre>;
return <pre>{JSON.stringify({ pathname, search, hash })}</pre>;
}

let renderer: TestRenderer.ReactTestRenderer;
Expand All @@ -22,7 +22,7 @@ describe("useLocation", () => {

expect(renderer.toJSON()).toMatchInlineSnapshot(`
<pre>
{"location":"/home","search":"?the=search","hash":"#the-hash"}
{"pathname":"/home","search":"?the=search","hash":"#the-hash"}
</pre>
`);
});
Expand Down

0 comments on commit fe44c3a

Please sign in to comment.