From a0da357b8d84c0da0707bffc9166e615e66cf3d0 Mon Sep 17 00:00:00 2001 From: iamacook Date: Wed, 5 Jul 2023 18:29:29 +0200 Subject: [PATCH] fix: mock --- .../create/steps/StatusStep/__tests__/useSafeCreation.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/new-safe/create/steps/StatusStep/__tests__/useSafeCreation.test.ts b/src/components/new-safe/create/steps/StatusStep/__tests__/useSafeCreation.test.ts index 30c4ad2edb..4c3b3e4c58 100644 --- a/src/components/new-safe/create/steps/StatusStep/__tests__/useSafeCreation.test.ts +++ b/src/components/new-safe/create/steps/StatusStep/__tests__/useSafeCreation.test.ts @@ -114,9 +114,7 @@ describe('useSafeCreation', () => { }) it('should create a safe with no gas params if the gas estimation threw, there is no txHash and status is AWAITING', async () => { - jest - .spyOn(gasPrice, 'default') - .mockReturnValue([{ maxFeePerGas: undefined, maxPriorityFeePerGas: undefined }, undefined, false]) + jest.spyOn(gasPrice, 'default').mockReturnValue([undefined, Error('Error for testing'), false]) const createSafeSpy = jest.spyOn(logic, 'createNewSafe').mockReturnValue(Promise.resolve({} as Safe))