Skip to content

Commit 7c33b9c

Browse files
committed
use const for return value
1 parent 80a29f2 commit 7c33b9c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/agent/lockup/positionsCreate.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ describe('positionsCreate.ts', () => {
1818
}
1919

2020
it('success', async () => {
21+
const stubTx = stubTransactionResposeFactory({})
2122
;(getLockupContract as jest.Mock).mockReturnValueOnce({
2223
depositToProperty: (propertyAddress: string, amount: number) =>
23-
stubTransactionResposeFactory,
24+
stubTx,
2425
})
2526
const options: Options = {
2627
provider: testProviders.ropsten,
@@ -30,7 +31,7 @@ describe('positionsCreate.ts', () => {
3031
}
3132
const result = await positionsCreate(options)
3233
expect(getLockupContract).toHaveBeenCalledTimes(1)
33-
expect(result).toEqual(stubTransactionResposeFactory)
34+
expect(result).toEqual(stubTx)
3435
})
3536
it('return undefined if network is not valid', async () => {
3637
;(getLockupContract as jest.Mock).mockReturnValueOnce(undefined)

0 commit comments

Comments
 (0)