aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-content/send-amount-row/tests
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-24 23:36:48 +0800
committerDan <danjm.com@gmail.com>2018-05-25 00:01:14 +0800
commit1405237479621d7258468e6c7694415b0afbb045 (patch)
treef2c8640f9ddb70a1bb5f26032740f98917f9e2ab /ui/app/components/send_/send-content/send-amount-row/tests
parentc4e48d9263cb251695afc28d936f7abb0e033f5c (diff)
downloadtangerine-wallet-browser-1405237479621d7258468e6c7694415b0afbb045.tar.gz
tangerine-wallet-browser-1405237479621d7258468e6c7694415b0afbb045.tar.zst
tangerine-wallet-browser-1405237479621d7258468e6c7694415b0afbb045.zip
Fix display of primary currency symbol in send amount row
Diffstat (limited to 'ui/app/components/send_/send-content/send-amount-row/tests')
-rw-r--r--ui/app/components/send_/send-content/send-amount-row/tests/send-amount-row-component.test.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/components/send_/send-content/send-amount-row/tests/send-amount-row-component.test.js b/ui/app/components/send_/send-content/send-amount-row/tests/send-amount-row-component.test.js
index 8355ebf10..31d2e2515 100644
--- a/ui/app/components/send_/send-content/send-amount-row/tests/send-amount-row-component.test.js
+++ b/ui/app/components/send_/send-content/send-amount-row/tests/send-amount-row-component.test.js
@@ -156,5 +156,11 @@ describe('SendAmountRow Component', function () {
['mockNewAmount']
)
})
+
+ it('should pass the default primaryCurrency to the CurrencyDisplay if primaryCurrency is falsy', () => {
+ wrapper.setProps({ primaryCurrency: null })
+ const { primaryCurrency } = wrapper.find(SendRowWrapper).childAt(1).props()
+ assert.equal(primaryCurrency, 'ETH')
+ })
})
})