Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5aceaca

Browse files
committed
Fix tests
1 parent 535cd73 commit 5aceaca

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

site/src/testHelpers/renderHelpers.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,10 @@ export function renderWithAuth(
6464
<I18nextProvider i18n={i18n}>
6565
<ThemeProvider theme={dark}>
6666
<Routes>
67-
<Route
68-
path={path ?? route}
69-
element={<RequireAuth>{ui}</RequireAuth>}
70-
/>
71-
{routes}
67+
<Route element={<RequireAuth />}>
68+
<Route path={path ?? route} element={ui} />
69+
{routes}
70+
</Route>
7271
</Routes>
7372
</ThemeProvider>
7473
</I18nextProvider>

0 commit comments

Comments
 (0)