Skip to content

Commit

Permalink
fix: mock
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Jul 5, 2023
1 parent 8bc8848 commit a0da357
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit a0da357

Please sign in to comment.