File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments