diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-09-27 21:46:24 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-10-01 23:23:32 +0800 |
commit | 918fb71df3079a80102fb77893af69ef3372e75f (patch) | |
tree | 6cfd03137fc27a53acee80ced7d0f78645fc0a32 /ui/app/components/send/tests/send-container.test.js | |
parent | 3741927d8d63bbee1eb9a628d2aac4c8e2e67f99 (diff) | |
download | tangerine-wallet-browser-918fb71df3079a80102fb77893af69ef3372e75f.tar.gz tangerine-wallet-browser-918fb71df3079a80102fb77893af69ef3372e75f.tar.zst tangerine-wallet-browser-918fb71df3079a80102fb77893af69ef3372e75f.zip |
Update gas when hex data changes on send screen
Diffstat (limited to 'ui/app/components/send/tests/send-container.test.js')
-rw-r--r-- | ui/app/components/send/tests/send-container.test.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/components/send/tests/send-container.test.js b/ui/app/components/send/tests/send-container.test.js index 85eec6a53..6aa4bf826 100644 --- a/ui/app/components/send/tests/send-container.test.js +++ b/ui/app/components/send/tests/send-container.test.js @@ -105,6 +105,7 @@ describe('send container', () => { selectedToken: { address: '0x1' }, to: 'mockTo', value: 'mockValue', + data: undefined, } it('should dispatch a setGasTotal action when editingTransactionId is truthy', () => { @@ -117,14 +118,14 @@ describe('send container', () => { }) it('should dispatch an updateGasData action when editingTransactionId is falsy', () => { - const { selectedAddress, selectedToken, recentBlocks, blockGasLimit, to, value } = mockProps + const { selectedAddress, selectedToken, recentBlocks, blockGasLimit, to, value, data } = mockProps mapDispatchToPropsObject.updateAndSetGasTotal( Object.assign({}, mockProps, {editingTransactionId: false}) ) assert(dispatchSpy.calledOnce) assert.deepEqual( actionSpies.updateGasData.getCall(0).args[0], - { selectedAddress, selectedToken, recentBlocks, blockGasLimit, to, value } + { selectedAddress, selectedToken, recentBlocks, blockGasLimit, to, value, data } ) }) }) |