Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Aug 31, 2023
1 parent 2f41b7b commit 03500c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/pages/apps.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import * as safeAppsGatewaySDK from '@safe-global/safe-gateway-typescript-sdk'
import { SafeAppFeatures } from '@safe-global/safe-gateway-typescript-sdk'
import type { SafeAppData } from '@safe-global/safe-gateway-typescript-sdk'
import { useParams } from 'next/navigation'

import {
render,
Expand All @@ -24,6 +25,7 @@ jest.mock('@safe-global/safe-gateway-typescript-sdk', () => ({
...jest.requireActual('@safe-global/safe-gateway-typescript-sdk'),
getSafeApps: (chainId: string) => Promise.resolve(mockedSafeApps),
}))
;(useParams as any).mockImplementation(() => () => ({ safe: 'matic:0x0000000000000000000000000000000000000000' }))

describe('AppsPage', () => {
beforeEach(() => {
Expand Down

0 comments on commit 03500c4

Please sign in to comment.