@@ -12,7 +12,7 @@ describe('Computed Wallet Unit Tests', () => {
1212 it ( 'should work with initial store' , ( ) => {
1313 ComputedWallet ( store ) ;
1414 expect ( store . walletAddressUri , 'to equal' , '' ) ;
15- expect ( store . balanceLabel , 'to equal' , '0' ) ;
15+ expect ( store . depositLabel , 'to equal' , '0' ) ;
1616 expect ( store . channelBalanceLabel , 'to equal' , '0' ) ;
1717 expect ( store . unitFiatLabel , 'to equal' , 'BTC' ) ;
1818 expect ( store . unitLabel , 'to equal' , 'BTC' ) ;
@@ -32,23 +32,25 @@ describe('Computed Wallet Unit Tests', () => {
3232 it ( 'should display channel balance in usd' , ( ) => {
3333 store . settings . displayFiat = true ;
3434 store . settings . exchangeRate . usd = 0.00014503 ;
35- store . balanceSatoshis = 100000000 ;
35+ store . balanceSatoshis = 50000000 ;
36+ store . pendingBalanceSatoshis = 50000000 ;
3637 store . channelBalanceSatoshis = 10000 ;
3738 ComputedWallet ( store ) ;
38- expect ( store . balanceLabel , 'to match' , / 6 [ , . ] 8 9 5 [ , . ] 1 3 / ) ;
39+ expect ( store . depositLabel , 'to match' , / 6 [ , . ] 8 9 5 [ , . ] 1 3 / ) ;
3940 expect ( store . channelBalanceLabel , 'to match' , / 0 [ , . ] 6 9 / ) ;
4041 expect ( store . unitFiatLabel , 'to equal' , '$' ) ;
4142 expect ( store . unitLabel , 'to equal' , null ) ;
4243 } ) ;
4344
4445 it ( 'should display channel balance in sat' , ( ) => {
4546 store . settings . exchangeRate . usd = 0.00014503 ;
46- store . balanceSatoshis = 100000001 ;
47+ store . balanceSatoshis = 50000001 ;
48+ store . pendingBalanceSatoshis = 50000000 ;
4749 store . channelBalanceSatoshis = 10000 ;
4850 store . settings . unit = 'bit' ;
4951 ComputedWallet ( store ) ;
5052 expect (
51- store . balanceLabel ,
53+ store . depositLabel ,
5254 'to match' ,
5355 / ^ 1 { 1 } [ , . ] 0 { 3 } [ , . ] 0 { 3 } [ , . ] 0 { 1 } 1 { 1 } $ /
5456 ) ;
0 commit comments