@@ -31,47 +31,35 @@ jest.mock('./depositToPosition')
3131jest . mock ( './withdrawByPosition' )
3232jest . mock ( './migrateToSTokens' )
3333jest . mock ( './calculateWithdrawableInterestAmountByPosition' )
34+ jest . mock ( 'ethers' )
3435
3536describe ( 'lockup/index.ts' , ( ) => {
36- ; ( createGetPropertyValueCaller as jest . Mock ) . mockImplementation (
37- ( contract ) => contract
38- )
39- ; ( createWithdrawCaller as jest . Mock ) . mockImplementation (
40- ( contract ) => contract
41- )
37+ ; ( createGetPropertyValueCaller as jest . Mock ) . mockImplementation ( ( ) => 123 )
38+ ; ( createWithdrawCaller as jest . Mock ) . mockImplementation ( ( ) => 123 )
4239 ; (
4340 createCalculateWithdrawableInterestAmountCaller as jest . Mock
44- ) . mockImplementation ( ( contract ) => contract )
45- ; ( createGetAllValueCaller as jest . Mock ) . mockImplementation (
46- ( contract ) => contract
47- )
41+ ) . mockImplementation ( ( ) => 123 )
42+ ; ( createGetAllValueCaller as jest . Mock ) . mockImplementation ( ( ) => 123 )
4843 ; ( createGetStorageWithdrawalStatusCaller as jest . Mock ) . mockImplementation (
49- ( contract ) => contract
44+ ( ) => 123
5045 )
5146 ; (
5247 createCalculateCumulativeHoldersRewardAmountCaller as jest . Mock
53- ) . mockImplementation ( ( contract ) => contract )
48+ ) . mockImplementation ( ( ) => 123 )
5449 ; (
5550 createCalculateCumulativeRewardPricesCaller as jest . Mock
56- ) . mockImplementation ( ( contract ) => contract )
51+ ) . mockImplementation ( ( ) => 123 )
5752 ; ( createCalculateRewardAmountCaller as jest . Mock ) . mockImplementation (
58- ( contract ) => contract
59- )
60- ; ( createDepositToPropertyCaller as jest . Mock ) . mockImplementation (
61- ( contract ) => contract
62- )
63- ; ( createDepositToPositionCaller as jest . Mock ) . mockImplementation (
64- ( contract ) => contract
65- )
66- ; ( createWithdrawByPositionCaller as jest . Mock ) . mockImplementation (
67- ( contract ) => contract
68- )
69- ; ( createMigrateToSTokensCaller as jest . Mock ) . mockImplementation (
70- ( contract ) => contract
53+ ( ) => 123
7154 )
55+ ; ( createDepositToPropertyCaller as jest . Mock ) . mockImplementation ( ( ) => 123 )
56+ ; ( createDepositToPositionCaller as jest . Mock ) . mockImplementation ( ( ) => 123 )
57+ ; ( createWithdrawByPositionCaller as jest . Mock ) . mockImplementation ( ( ) => 123 )
58+ ; ( createMigrateToSTokensCaller as jest . Mock ) . mockImplementation ( ( ) => 123 )
7259 ; (
7360 createcalculateWithdrawableInterestAmountByPositionCaller as jest . Mock
74- ) . mockImplementation ( ( contract ) => contract )
61+ ) . mockImplementation ( ( ) => 123 )
62+ ; ( ethers . Contract as jest . Mock ) . mockImplementation ( ( ) => 123 )
7563
7664 describe ( 'createLockupContract' , ( ) => {
7765 it ( 'check return object' , ( ) => {
0 commit comments