aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send-header/tests/send-header-container.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-container.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-container.test.js')
-rw-r--r--ui/app/components/send_/send-header/tests/send-header-container.test.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/components/send_/send-header/tests/send-header-container.test.js b/ui/app/components/send_/send-header/tests/send-header-container.test.js
index abce9af6b..41a7e8a89 100644
--- a/ui/app/components/send_/send-header/tests/send-header-container.test.js
+++ b/ui/app/components/send_/send-header/tests/send-header-container.test.js
@@ -18,7 +18,10 @@ proxyquire('../send-header.container.js', {
},
},
'../../../actions': actionSpies,
- '../../../selectors': { getSelectedToken: (s) => `mockSelectedToken:${s}` },
+ './send-header.selectors': {
+ getTitleKey: (s) => `mockTitleKey:${s}`,
+ getSubtitleParams: (s) => `mockSubtitleParams:${s}`,
+ },
})
describe('send-header container', () => {
@@ -27,7 +30,8 @@ describe('send-header container', () => {
it('should map the correct properties to props', () => {
assert.deepEqual(mapStateToProps('mockState'), {
- isToken: true,
+ titleKey: 'mockTitleKey:mockState',
+ subtitleParams: 'mockSubtitleParams:mockState',
})
})