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 6010d12
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tests/pages/apps.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ jest.mock('@safe-global/safe-gateway-typescript-sdk', () => ({
getSafeApps: (chainId: string) => Promise.resolve(mockedSafeApps),
}))

jest.mock('next/navigation', () => ({
...jest.requireActual('next/navigation'),
useParams: jest.fn(() => ({ safe: 'matic:0x0000000000000000000000000000000000000000' })),
}))

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

0 comments on commit 6010d12

Please sign in to comment.