@@ -6,15 +6,15 @@ import { isWalletRewardsWithdrawalPossible, shouldShowEmptyWalletWarning } from
66// is displayed in the send confirmation dialog
77
88describe ( 'Function shouldShowEmptyWalletWarning returns:' , ( ) => {
9- it ( ' <false> in case the balance after transaction is lower than ' +
10- ' MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS' , ( ) => {
9+ it ( ` <false> in case the balance after transaction is lower than
10+ MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS` , ( ) => {
1111 const transactionAmount = new BigNumber ( 100 ) ;
1212 const walletBalance = new BigNumber ( 101 ) ;
1313 expect ( isWalletRewardsWithdrawalPossible ( transactionAmount , walletBalance ) ) . toBe ( false ) ;
1414 } ) ;
1515
16- it ( ' <true> in case the balance after transaction is higher than ' +
17- ' MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS' , ( ) => {
16+ it ( ` <true> in case the balance after transaction is higher than
17+ MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS` , ( ) => {
1818 const transactionAmount = new BigNumber ( 100 ) ;
1919 const walletBalance = new BigNumber ( 110 ) ;
2020 expect ( isWalletRewardsWithdrawalPossible ( transactionAmount , walletBalance ) ) . toBe ( true ) ;
@@ -27,12 +27,11 @@ describe('Function shouldShowEmptyWalletWarning returns:', () => {
2727 // remain balance after transaction is 0 ADA.
2828
2929
30- it ( '<true> in case of: ' +
31- 'remain balance less than MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS ' +
32- 'is not Legacy ' +
33- 'is delegating ' +
34- 'has no assets left'
35- , ( ) => {
30+ it ( `<true> in case of:
31+ - remain balance less than MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS
32+ - is not Legacy
33+ - is delegating
34+ - has no assets left` , ( ) => {
3635 const totalAmountToSpend = new BigNumber ( 95 ) ;
3736 const walletBalance = new BigNumber ( 100 ) ;
3837 const isLegacy = false ;
@@ -42,12 +41,11 @@ describe('Function shouldShowEmptyWalletWarning returns:', () => {
4241 expect ( shouldShowEmptyWalletWarning ( totalAmountToSpend , wallet , hasAssets ) ) . toBe ( true ) ;
4342 } ) ;
4443
45- it ( '<false> in case of: ' +
46- 'remain balance less than MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS ' +
47- 'is legacy ' +
48- 'is delegating ' +
49- 'has no assets left'
50- , ( ) => { const totalAmountToSpend = new BigNumber ( 95 ) ;
44+ it ( `<false> in case of:
45+ - remain balance less than MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS
46+ - is legacy
47+ - is delegating
48+ - has no assets left` , ( ) => { const totalAmountToSpend = new BigNumber ( 95 ) ;
5149 const walletBalance = new BigNumber ( 100 ) ;
5250 const isLegacy = true ;
5351 const isDelegating = true ;
@@ -56,12 +54,11 @@ describe('Function shouldShowEmptyWalletWarning returns:', () => {
5654 expect ( shouldShowEmptyWalletWarning ( totalAmountToSpend , wallet , hasAssets ) ) . toBe ( false ) ;
5755 } ) ;
5856
59- it ( '<true> in case of: ' +
60- 'remain balance less than MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS ' +
61- 'is not legacy ' +
62- 'is not delegating ' +
63- 'has no assets left'
64- , ( ) => { const totalAmountToSpend = new BigNumber ( 95 ) ;
57+ it ( `<true> in case of:
58+ - remain balance less than MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS
59+ - is not legacy
60+ - is not delegating
61+ - has no assets left` , ( ) => { const totalAmountToSpend = new BigNumber ( 95 ) ;
6562 const walletBalance = new BigNumber ( 100 ) ;
6663 const isLegacy = false ;
6764 const isDelegating = false ;
@@ -70,12 +67,11 @@ describe('Function shouldShowEmptyWalletWarning returns:', () => {
7067 expect ( shouldShowEmptyWalletWarning ( totalAmountToSpend , wallet , hasAssets ) ) . toBe ( true ) ;
7168 } ) ;
7269
73- it ( '<false> in case of: ' +
74- 'remain balance far more than MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS ' +
75- 'is not Legacy ' +
76- 'is delegating ' +
77- 'has no assets left'
78- , ( ) => {
70+ it ( `<false> in case of:
71+ - remain balance far more than MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS
72+ - is not Legacy
73+ - is delegating
74+ 'has no assets left` , ( ) => {
7975 const totalAmountToSpend = new BigNumber ( 95 ) ;
8076 const walletBalance = new BigNumber ( 200 ) ;
8177 const isLegacy = false ;
@@ -85,12 +81,11 @@ describe('Function shouldShowEmptyWalletWarning returns:', () => {
8581 expect ( shouldShowEmptyWalletWarning ( totalAmountToSpend , wallet , hasAssets ) ) . toBe ( false ) ;
8682 } ) ;
8783
88- it ( '<true> in case of: ' +
89- 'remain balance less than MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS ' +
90- 'is not Legacy ' +
91- 'is delegating ' +
92- 'has assets left'
93- , ( ) => {
84+ it ( `<true> in case of:
85+ - remain balance less than MINIMUM_MINIMUM_ADA_BALANCE_FOR_WITHDRAWING_REWARDS
86+ - is not Legacy
87+ - is delegating
88+ - has assets left` , ( ) => {
9489 const totalAmountToSpend = new BigNumber ( 95 ) ;
9590 const walletBalance = new BigNumber ( 100 ) ;
9691 const isLegacy = false ;
0 commit comments