Ver Fonte

fix layout test

tumao há 4 anos atrás
pai
commit
6abb22e4e0
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      client/src/components/__test__/layout/Layout.spec.tsx

+ 4 - 0
client/src/components/__test__/layout/Layout.spec.tsx

@@ -4,6 +4,10 @@ import Layout from '../../layout/Layout';
 
 
 let container: any = null;
 let container: any = null;
 
 
+jest.mock('@material-ui/core/styles/makeStyles', () => {
+  return () => () => ({});
+});
+
 jest.mock('react-i18next', () => ({
 jest.mock('react-i18next', () => ({
   useTranslation: () => ({
   useTranslation: () => ({
     t: (key: any) => key,
     t: (key: any) => key,