Skip to content

Commit

Permalink
fix: incorrect spy
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook committed Nov 9, 2023
1 parent 181b21d commit 3a1026c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/recovery/__tests__/delay-modifier.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ describe('delay-modifier', () => {
getCode: jest.fn().mockResolvedValueOnce(gnosisGenericProxyBytecode).mockResolvedValue(bytecode),
} as unknown as JsonRpcProvider

jest.spyOn(proxies, 'getGnosisGenericProxyMasterCopy').mockResolvedValue(moduleAddress)
jest.spyOn(proxies, 'getGnosisProxyMasterCopy').mockResolvedValue(moduleAddress)

const isOfficial = await isOfficialDelayModifier(chainId, proxyAddress, provider)
expect(isOfficial).toBe(true)
Expand All @@ -102,7 +102,7 @@ describe('delay-modifier', () => {
getCode: jest.fn().mockResolvedValueOnce(gnosisGenericProxyBytecode).mockResolvedValue(bytecode),
} as unknown as JsonRpcProvider

jest.spyOn(proxies, 'getGnosisGenericProxyMasterCopy').mockResolvedValue(moduleAddress)
jest.spyOn(proxies, 'getGnosisProxyMasterCopy').mockResolvedValue(moduleAddress)

const isOfficial = await isOfficialDelayModifier(chainId, proxyAddress, provider)
expect(isOfficial).toBe(false)
Expand Down

0 comments on commit 3a1026c

Please sign in to comment.