Skip to content

Commit 58c7680

Browse files
committed
use mockReturnValue
1 parent 7c33b9c commit 58c7680

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/agent/lockup/positionsCreate.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('positionsCreate.ts', () => {
1919

2020
it('success', async () => {
2121
const stubTx = stubTransactionResposeFactory({})
22-
;(getLockupContract as jest.Mock).mockReturnValueOnce({
22+
;(getLockupContract as jest.Mock).mockReturnValue({
2323
depositToProperty: (propertyAddress: string, amount: number) =>
2424
stubTx,
2525
})
@@ -34,7 +34,7 @@ describe('positionsCreate.ts', () => {
3434
expect(result).toEqual(stubTx)
3535
})
3636
it('return undefined if network is not valid', async () => {
37-
;(getLockupContract as jest.Mock).mockReturnValueOnce(undefined)
37+
;(getLockupContract as jest.Mock).mockReturnValue(undefined)
3838
const options: Options = {
3939
provider: testProviders.polyMumbai,
4040
propertyAddress,

0 commit comments

Comments
 (0)