diff --git a/packages/react-router-dom/__tests__/trailing-slashes-test.tsx b/packages/react-router-dom/__tests__/trailing-slashes-test.tsx
index 1681166145..31f6b27ec1 100644
--- a/packages/react-router-dom/__tests__/trailing-slashes-test.tsx
+++ b/packages/react-router-dom/__tests__/trailing-slashes-test.tsx
@@ -126,10 +126,10 @@ describe("trailing slashes", () => {
index
element={
<>
-
-
-
-
+
+
+
+
>
}
/>
@@ -277,10 +277,10 @@ describe("trailing slashes", () => {
index
element={
<>
-
-
-
-
+
+
+
+
>
}
/>