aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send/send-footer/tests/send-footer-container.test.js
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-07-17 06:50:26 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-07-18 20:28:12 +0800
commitfb672e00df949da67266946d433c40cbbaf7d145 (patch)
tree9c050478dff5c87275ff311dc514e672d7502ee9 /ui/app/components/send/send-footer/tests/send-footer-container.test.js
parent9ea7411c063712825780110c10252155ccb61e44 (diff)
downloadtangerine-wallet-browser-fb672e00df949da67266946d433c40cbbaf7d145.tar.gz
tangerine-wallet-browser-fb672e00df949da67266946d433c40cbbaf7d145.tar.zst
tangerine-wallet-browser-fb672e00df949da67266946d433c40cbbaf7d145.zip
Send data along with other tx params
Diffstat (limited to 'ui/app/components/send/send-footer/tests/send-footer-container.test.js')
-rw-r--r--ui/app/components/send/send-footer/tests/send-footer-container.test.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/components/send/send-footer/tests/send-footer-container.test.js b/ui/app/components/send/send-footer/tests/send-footer-container.test.js
index 39d6a7686..cf4c893ee 100644
--- a/ui/app/components/send/send-footer/tests/send-footer-container.test.js
+++ b/ui/app/components/send/send-footer/tests/send-footer-container.test.js
@@ -38,6 +38,7 @@ proxyquire('../send-footer.container.js', {
getSendTo: (s) => `mockTo:${s}`,
getSendToAccounts: (s) => `mockToAccounts:${s}`,
getTokenBalance: (s) => `mockTokenBalance:${s}`,
+ getSendHexData: (s) => `mockHexData:${s}`,
getUnapprovedTxs: (s) => `mockUnapprovedTxs:${s}`,
},
'./send-footer.selectors': { isSendFormInError: (s) => `mockInError:${s}` },
@@ -51,6 +52,7 @@ describe('send-footer container', () => {
it('should map the correct properties to props', () => {
assert.deepEqual(mapStateToProps('mockState'), {
amount: 'mockAmount:mockState',
+ data: 'mockHexData:mockState',
selectedToken: 'mockSelectedToken:mockState',
editingTransactionId: 'mockEditingTransactionId:mockState',
from: 'mockFromObject:mockState',
@@ -100,6 +102,7 @@ describe('send-footer container', () => {
assert.deepEqual(
utilsStubs.constructTxParams.getCall(0).args[0],
{
+ data: undefined,
selectedToken: {
address: '0xabc',
},
@@ -129,6 +132,7 @@ describe('send-footer container', () => {
assert.deepEqual(
utilsStubs.constructTxParams.getCall(0).args[0],
{
+ data: undefined,
selectedToken: undefined,
to: 'mockTo',
amount: 'mockAmount',
@@ -160,6 +164,7 @@ describe('send-footer container', () => {
assert.deepEqual(
utilsStubs.constructUpdatedTx.getCall(0).args[0],
{
+ data: undefined,
to: 'mockTo',
amount: 'mockAmount',
from: 'mockFrom',