@@ -11,7 +11,7 @@ import { stubTransactionResposeFactory } from '../../common/utils/for-test'
1111
1212jest . mock ( './common' , ( ) => {
1313 return {
14- getLockupContract : jest . fn ( )
14+ getLockupContract : jest . fn ( ) ,
1515 }
1616} )
1717
@@ -24,7 +24,10 @@ describe('positionsCreate.ts', () => {
2424 }
2525
2626 it ( 'success' , async ( ) => {
27- ( getLockupContract as jest . Mock ) . mockReturnValueOnce ( { depositToProperty : ( propertyAddress : string , amount : number ) => stubTransactionResposeFactory } )
27+ ; ( getLockupContract as jest . Mock ) . mockReturnValueOnce ( {
28+ depositToProperty : ( propertyAddress : string , amount : number ) =>
29+ stubTransactionResposeFactory ,
30+ } )
2831 const options : Options = {
2932 provider : testProviders . ropsten ,
3033 propertyAddress,
@@ -33,10 +36,10 @@ describe('positionsCreate.ts', () => {
3336 }
3437 const result = await positionsCreate ( options )
3538 expect ( getLockupContract ) . toHaveBeenCalledTimes ( 1 )
36- expect ( result ) . toEqual ( stubTransactionResposeFactory )
39+ expect ( result ) . toEqual ( stubTransactionResposeFactory )
3740 } )
3841 it ( 'return undefined if network is not valid' , async ( ) => {
39- ( getLockupContract as jest . Mock ) . mockReturnValueOnce ( undefined )
42+ ; ( getLockupContract as jest . Mock ) . mockReturnValueOnce ( undefined )
4043 const options : Options = {
4144 provider : testProviders . polyMumbai ,
4245 propertyAddress,
0 commit comments