Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Dec 1, 2023
1 parent f3e2ac5 commit 5c6d7b6
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions packages/react-router-dom/__tests__/data-browser-router-test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3123,13 +3123,10 @@ function testDomRouter(
it("navigates relative to the URL for splat routes", async () => {
let router = createTestRouter(
createRoutesFromElements(
<Route path="inbox">
<Route path="messages" />
<Route
path="messages/*"
element={<Form action=".." relative="path" />}
/>
</Route>
<Route
path="inbox/messages/*"
element={<Form action=".." relative="path" />}
/>
),
{
window: getWindow("/inbox/messages/1/2/3"),
Expand All @@ -3138,7 +3135,7 @@ function testDomRouter(
let { container } = render(<RouterProvider router={router} />);

expect(container.querySelector("form")?.getAttribute("action")).toBe(
"/inbox/messages/1/2"
"/inbox"
);
});
});
Expand Down

0 comments on commit 5c6d7b6

Please sign in to comment.