Migrated MenuLayout test to react testing library

This commit is contained in:
Alejandro Celaya
2022-05-06 18:54:00 +02:00
parent 218ea09d23
commit 63f26d0089
3 changed files with 72 additions and 55 deletions

View File

@@ -16,7 +16,7 @@ interface MenuLayoutProps {
sidebarNotPresent: Function;
}
const MenuLayout = (
export const MenuLayout = (
TagsList: FC,
ShortUrlsList: FC,
AsideMenu: FC<AsideMenuProps>,
@@ -86,5 +86,3 @@ const MenuLayout = (
</>
);
}, ServerError);
export default MenuLayout;

View File

@@ -3,7 +3,7 @@ import Bottle from 'bottlejs';
import ScrollToTop from '../ScrollToTop';
import { MainHeader } from '../MainHeader';
import { Home } from '../Home';
import MenuLayout from '../MenuLayout';
import { MenuLayout } from '../MenuLayout';
import AsideMenu from '../AsideMenu';
import { ErrorHandler } from '../ErrorHandler';
import ShlinkVersionsContainer from '../ShlinkVersionsContainer';