Skip to content

Commit

Permalink
fix: onback test
Browse files Browse the repository at this point in the history
  • Loading branch information
flobarreto committed May 30, 2023
1 parent dbed247 commit c0644fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion webapp/src/components/AssetPage/OnBack/OnBack.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useMobileMediaQuery } from 'decentraland-ui/dist/components/Media'
import { Network } from '@dcl/schemas'
import { Asset } from '../../../modules/asset/types'
import { INITIAL_STATE } from '../../../modules/favorites/reducer'
import { renderWithProviders } from '../../../utils/test'
Expand Down Expand Up @@ -89,7 +90,11 @@ describe('OnBack', () => {

describe('and the asset is an item', () => {
beforeEach(() => {
asset = { ...asset, itemId: 'itemId' } as Asset
asset = {
...asset,
itemId: 'itemId',
network: Network.MATIC
} as Asset
useMobileMediaQueryMock.mockReturnValue(true)
})

Expand Down

0 comments on commit c0644fe

Please sign in to comment.