@@ -56,12 +56,13 @@ describe('MyGroupsSidebarItem Test', () => {
|
||||
</TestApiProvider>,
|
||||
{
|
||||
mountedRoutes: {
|
||||
'/': entityRouteRef,
|
||||
'/catalog/:namespace/:kind/:name': entityRouteRef,
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
expect(rendered.container).toBeEmptyDOMElement();
|
||||
expect(
|
||||
rendered.getByText('Mounted at /catalog/:namespace/:kind/:name'),
|
||||
).toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ export const MyGroupsSidebarItem = ({
|
||||
|
||||
// Not a member of any groups
|
||||
if (!groups?.length) {
|
||||
return <></>;
|
||||
return null;
|
||||
}
|
||||
|
||||
// Only member of one group
|
||||
|
||||
Reference in New Issue
Block a user