aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-header/tests/send-header-component.test.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-05-25 03:57:33 +0800
committerDan <danjm.com@gmail.com>2018-05-25 03:57:33 +0800
commit5bb399e55a819d52f2742e3491d50547be435a97 (patch)
treedf4e7f579f3a28602b84f79c443ca4d97ff03a53 /ui/app/components/send_/send-header/tests/send-header-component.test.js
parent1405237479621d7258468e6c7694415b0afbb045 (diff)
downloadtangerine-wallet-browser-5bb399e55a819d52f2742e3491d50547be435a97.tar.gz
tangerine-wallet-browser-5bb399e55a819d52f2742e3491d50547be435a97.tar.zst
tangerine-wallet-browser-5bb399e55a819d52f2742e3491d50547be435a97.zip
Display correct titles and subtitles on send token and editing send transaction screens.
Diffstat (limited to 'ui/app/components/send_/send-header/tests/send-header-component.test.js')
-rw-r--r--ui/app/components/send_/send-header/tests/send-header-component.test.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/app/components/send_/send-header/tests/send-header-component.test.js b/ui/app/components/send_/send-header/tests/send-header-component.test.js
index c9d6d8023..930bfa387 100644
--- a/ui/app/components/send_/send-header/tests/send-header-component.test.js
+++ b/ui/app/components/send_/send-header/tests/send-header-component.test.js
@@ -23,8 +23,9 @@ describe('SendHeader Component', function () {
wrapper = shallow(<SendHeader
clearSend={propsMethodSpies.clearSend}
history={historySpies}
- isToken={false}
- />, { context: { t: str => str } })
+ titleKey={'mockTitleKey'}
+ subtitleParams={[ 'mockSubtitleKey', 'mockVal']}
+ />, { context: { t: (str1, str2) => str2 ? str1 + str2 : str1 } })
})
afterEach(() => {
@@ -59,8 +60,8 @@ describe('SendHeader Component', function () {
subtitle,
title,
} = wrapper.find(PageContainerHeader).props()
- assert.equal(subtitle, 'onlySendToEtherAddress')
- assert.equal(title, 'sendETH')
+ assert.equal(subtitle, 'mockSubtitleKeymockVal')
+ assert.equal(title, 'mockTitleKey')
assert.equal(SendHeader.prototype.onClose.callCount, 0)
onClose()
assert.equal(SendHeader.prototype.onClose.callCount, 1)