File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,30 +4,30 @@ import { testProviders } from '../common/const'
44
55jest . mock ( './common' , ( ) => {
66 return {
7- getLockupContract : jest . fn ( )
7+ getLockupContract : jest . fn ( ) ,
88 }
99} )
1010
1111describe ( 'depositToPosition.ts' , ( ) => {
1212 const options = {
1313 provider : testProviders . ropsten ,
1414 positionTokenId : '1' ,
15- amount : '100'
15+ amount : '100' ,
1616 }
1717 it ( 'success' , async ( ) => {
1818 const expected = true
1919
2020 ; ( getLockupContract as jest . Mock ) . mockReturnValue ( {
21- depositToPosition : ( positionTokenId : string , amount : string ) => expected
21+ depositToPosition : ( positionTokenId : string , amount : string ) => expected ,
2222 } )
2323
2424 const result = await depositToPosition ( options )
2525 expect ( result ) . toEqual ( expected )
2626 } )
27- it ( 'return undefined if no valid network' , async ( ) => {
27+ it ( 'return undefined if no valid network' , async ( ) => {
2828 const expected = undefined
2929 ; ( getLockupContract as jest . Mock ) . mockReturnValue ( undefined )
30- const result = await depositToPosition ( options )
30+ const result = await depositToPosition ( options )
3131 expect ( result ) . toEqual ( expected )
3232 } )
3333} )
You can’t perform that action at this time.
0 commit comments