Skip to content

Commit 02e7e47

Browse files
committed
No need for extra routes with a bit of ?
1 parent 6b42506 commit 02e7e47

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

site/src/pages/ManagementSettingsPage/OrganizationSettingsPage.test.tsx

+1-7
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@ jest.spyOn(console, "error").mockImplementation(() => {});
1616
const renderRootPage = async () => {
1717
renderWithManagementSettingsLayout(<OrganizationSettingsPage />, {
1818
route: "/organizations",
19-
path: "/organizations",
20-
extraRoutes: [
21-
{
22-
path: "/organizations/:organization",
23-
element: <OrganizationSettingsPage />,
24-
},
25-
],
19+
path: "/organizations/:organization?",
2620
});
2721
await waitForLoaderToBeRemoved();
2822
};

0 commit comments

Comments
 (0)