Răsfoiți Sursa

fix layout test

tumao 4 ani în urmă
părinte
comite
6abb22e4e0
1 a modificat fișierele cu 4 adăugiri și 0 ștergeri
  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;
 
+jest.mock('@material-ui/core/styles/makeStyles', () => {
+  return () => () => ({});
+});
+
 jest.mock('react-i18next', () => ({
   useTranslation: () => ({
     t: (key: any) => key,