Skip to content

Commit

Permalink
test: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Jan 24, 2024
1 parent e259570 commit 4cf67eb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4cf67eb

Please sign in to comment.