diff --git a/webapp/src/components/Modals/FavoritesModal/FavoritesModal.spec.tsx b/webapp/src/components/Modals/FavoritesModal/FavoritesModal.spec.tsx index 1e28db6639..4a281f8a8d 100644 --- a/webapp/src/components/Modals/FavoritesModal/FavoritesModal.spec.tsx +++ b/webapp/src/components/Modals/FavoritesModal/FavoritesModal.spec.tsx @@ -5,6 +5,10 @@ import { renderWithProviders } from '../../../utils/test' import FavoritesModal from './FavoritesModal' import { Props } from './FavoritesModal.types' +jest.mock('@dcl/single-sign-on-client', () => ({ + localStorageGetIdentity: jest.fn() +})) + // Fixing warning: `NaN` is an invalid value for the `height` css style property. jest.mock('react-virtualized-auto-sizer', () => { return { diff --git a/webapp/src/components/Modals/SaveToListModal/SaveToListModal.spec.tsx b/webapp/src/components/Modals/SaveToListModal/SaveToListModal.spec.tsx index 1fba73214c..c11e4f03e1 100644 --- a/webapp/src/components/Modals/SaveToListModal/SaveToListModal.spec.tsx +++ b/webapp/src/components/Modals/SaveToListModal/SaveToListModal.spec.tsx @@ -16,6 +16,10 @@ import { import SaveToListModal from './SaveToListModal' import { Props } from './SaveToListModal.types' +jest.mock('@dcl/single-sign-on-client', () => ({ + localStorageGetIdentity: jest.fn() +})) + jest.mock('react-virtualized-auto-sizer', () => { return { __esModule: true,