@@ -1317,6 +1317,7 @@ describe('PaymentService', () => {
13171317 { currency : PaymentCurrency . USD , amount : 100 } ,
13181318 { currency : PaymentCurrency . HMT , amount : 50 } ,
13191319 { currency : PaymentCurrency . USDT , amount : 0 } ,
1320+ { currency : PaymentCurrency . USDT0 , amount : 0 } ,
13201321 { currency : PaymentCurrency . USDC , amount : 0 } ,
13211322 ] ,
13221323 totalUsdAmount : 150 ,
@@ -1336,8 +1337,8 @@ describe('PaymentService', () => {
13361337 const balance = await paymentService . getUserBalance ( userId ) ;
13371338
13381339 expect ( balance ) . toEqual ( expectedBalance ) ;
1339- expect ( paymentService . getUserBalanceByCurrency ) . toHaveBeenCalledTimes ( 4 ) ;
1340- expect ( paymentService . convertToUSD ) . toHaveBeenCalledTimes ( 4 ) ;
1340+ expect ( paymentService . getUserBalanceByCurrency ) . toHaveBeenCalledTimes ( 5 ) ;
1341+ expect ( paymentService . convertToUSD ) . toHaveBeenCalledTimes ( 5 ) ;
13411342 } ) ;
13421343
13431344 it ( 'should return zero balance for new users' , async ( ) => {
@@ -1347,6 +1348,7 @@ describe('PaymentService', () => {
13471348 { currency : PaymentCurrency . USD , amount : 0 } ,
13481349 { currency : PaymentCurrency . HMT , amount : 0 } ,
13491350 { currency : PaymentCurrency . USDT , amount : 0 } ,
1351+ { currency : PaymentCurrency . USDT0 , amount : 0 } ,
13501352 { currency : PaymentCurrency . USDC , amount : 0 } ,
13511353 ] ,
13521354 totalUsdAmount : 0 ,
@@ -1366,8 +1368,8 @@ describe('PaymentService', () => {
13661368 const balance = await paymentService . getUserBalance ( userId ) ;
13671369
13681370 expect ( balance ) . toEqual ( expectedBalance ) ;
1369- expect ( paymentService . getUserBalanceByCurrency ) . toHaveBeenCalledTimes ( 4 ) ;
1370- expect ( paymentService . convertToUSD ) . toHaveBeenCalledTimes ( 4 ) ;
1371+ expect ( paymentService . getUserBalanceByCurrency ) . toHaveBeenCalledTimes ( 5 ) ;
1372+ expect ( paymentService . convertToUSD ) . toHaveBeenCalledTimes ( 5 ) ;
13711373 } ) ;
13721374 } ) ;
13731375
0 commit comments