diff options
author | kumavis <kumavis@users.noreply.github.com> | 2018-10-21 22:45:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-21 22:45:55 +0800 |
commit | 802df4625fdd11ac532e12920265ed16cdbdbc44 (patch) | |
tree | b92c4b3c4d37bd74f932c595c8736419781b152d /ui/app/components/currency-display/tests/currency-display.container.test.js | |
parent | f7978078c4be62b047ee7a37b840420224d7b839 (diff) | |
parent | 614995c0e933fcc984126eee20fb7dd4533e8e5b (diff) | |
download | tangerine-wallet-browser-802df4625fdd11ac532e12920265ed16cdbdbc44.tar.gz tangerine-wallet-browser-802df4625fdd11ac532e12920265ed16cdbdbc44.tar.zst tangerine-wallet-browser-802df4625fdd11ac532e12920265ed16cdbdbc44.zip |
Merge pull request #5570 from alextsg/i5558-account-display-width
Fix account display width for large currency values
Diffstat (limited to 'ui/app/components/currency-display/tests/currency-display.container.test.js')
-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, }, }, ] |