Skip to content

Commit 74bf0eb

Browse files
committed
Update property name
1 parent f17295f commit 74bf0eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-router/__tests__/useLocation-test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe("useLocation", () => {
66
it("returns the current location object", () => {
77
function Home() {
88
let { pathname, search, hash } = useLocation();
9-
return <pre>{JSON.stringify({ location: pathname, search, hash })}</pre>;
9+
return <pre>{JSON.stringify({ pathname, search, hash })}</pre>;
1010
}
1111

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

2323
expect(renderer.toJSON()).toMatchInlineSnapshot(`
2424
<pre>
25-
{"location":"/home","search":"?the=search","hash":"#the-hash"}
25+
{"pathname":"/home","search":"?the=search","hash":"#the-hash"}
2626
</pre>
2727
`);
2828
});

0 commit comments

Comments
 (0)