diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-10-21 19:12:40 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-10-21 22:01:20 +0800 |
commit | 614995c0e933fcc984126eee20fb7dd4533e8e5b (patch) | |
tree | 7f2b29433e6df871122b74770e1106206889274f /ui/app/components/currency-display/tests | |
parent | ba3617b685b9dcd8a62e0009ee2015c5997fead3 (diff) | |
download | tangerine-wallet-browser-614995c0e933fcc984126eee20fb7dd4533e8e5b.tar.gz tangerine-wallet-browser-614995c0e933fcc984126eee20fb7dd4533e8e5b.tar.zst tangerine-wallet-browser-614995c0e933fcc984126eee20fb7dd4533e8e5b.zip |
Fix account display width for large currency values
Diffstat (limited to 'ui/app/components/currency-display/tests')
-rw-r--r-- | ui/app/components/currency-display/tests/currency-display.container.test.js | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/ui/app/components/currency-display/tests/currency-display.container.test.js b/ui/app/components/currency-display/tests/currency-display.container.test.js index b9f98c543..fb6678776 100644 --- a/ui/app/components/currency-display/tests/currency-display.container.test.js +++ b/ui/app/components/currency-display/tests/currency-display.container.test.js @@ -45,7 +45,8 @@ describe('CurrencyDisplay container', () => { currency: 'usd', }, result: { - displayValue: '$2.80 USD', + displayValue: '$2.80', + suffix: 'USD', }, }, { @@ -53,7 +54,8 @@ describe('CurrencyDisplay container', () => { value: '0x2386f26fc10000', }, result: { - displayValue: '$2.80 USD', + displayValue: '$2.80', + suffix: 'USD', }, }, { @@ -63,7 +65,8 @@ describe('CurrencyDisplay container', () => { numberOfDecimals: 3, }, result: { - displayValue: '1.266 ETH', + displayValue: '1.266', + suffix: 'ETH', }, }, { @@ -75,6 +78,7 @@ describe('CurrencyDisplay container', () => { }, result: { displayValue: '1.266', + suffix: undefined, }, }, { @@ -86,6 +90,7 @@ describe('CurrencyDisplay container', () => { }, result: { displayValue: '1', + suffix: undefined, }, }, { @@ -97,6 +102,7 @@ describe('CurrencyDisplay container', () => { }, result: { displayValue: '1000000000', + suffix: undefined, }, }, { @@ -108,6 +114,7 @@ describe('CurrencyDisplay container', () => { }, result: { displayValue: '1e-9', + suffix: undefined, }, }, ] |