@@ -19,7 +19,7 @@ describe('LoanRequest test', () => {
19
19
expect ( data ) . toBeTruthy ( )
20
20
} )
21
21
22
- it ( 'Should load requests metadata from api' , async ( ) => {
22
+ it ( 'Should load requests getMaxLoanAmountFromCollateral from api' , async ( ) => {
23
23
const data = await request . getMaxLoanAmountFromCollateral ( 2312 , 'LEND' , 'ETH' )
24
24
expect ( data ) . toBeTruthy ( )
25
25
} )
@@ -29,6 +29,19 @@ describe('LoanRequest test', () => {
29
29
expect ( data ) . toBeTruthy ( )
30
30
} )
31
31
32
+ it ( 'Should check isCollateralPriceUpdated via api' , async ( ) => {
33
+ const data = await request . isCollateralPriceUpdated ( '0x71f4CF5Cfb74a9D3c9060aC4c25070F989cFC39C' )
34
+ expect ( data ) . toBeTruthy ( )
35
+ } )
36
+
37
+ it ( 'Should get refreshCollateralPrice transaction via api' , async ( ) => {
38
+ const data = await request . refreshCollateralPrice (
39
+ '0x71f4CF5Cfb74a9D3c9060aC4c25070F989cFC39C' ,
40
+ '0x4206925f7652a5af8a0F48aB714ABbd1EF27D916'
41
+ )
42
+ expect ( data ) . toBeTruthy ( )
43
+ } )
44
+
32
45
it ( 'Should get all loans by borrower data from api' , async ( ) => {
33
46
const data = await request . getLoansByBorrower ( '0x4206925f7652a5af8a0F48aB714ABbd1EF27D916' )
34
47
expect ( data ) . toBeTruthy ( )
0 commit comments