Skip to content

Commit 83053e8

Browse files
committed
Fix test
1 parent 31f020f commit 83053e8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/react-router-dom/__tests__/data-browser-router-test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4911,6 +4911,7 @@ function testDomRouter(
49114911
],
49124912
{
49134913
window: getWindow("/"),
4914+
hydrationData: { loaderData: { "0": null } },
49144915
}
49154916
);
49164917
let { container } = render(<RouterProvider router={router} />);

packages/router/__tests__/router-test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10799,6 +10799,7 @@ describe("a router", () => {
1079910799
routes: [{ id: "root", path: "/", loader: () => "LOADER" }],
1080010800
history: createMemoryHistory(),
1080110801
future: { v7_normalizeFormMethod: true },
10802+
hydrationData: { loaderData: { root: null } },
1080210803
}).initialize();
1080310804

1080410805
let key = "key";

0 commit comments

Comments
 (0)