diff options
author | Dan <danjm.com@gmail.com> | 2018-05-22 23:16:53 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-31 07:24:31 +0800 |
commit | 4f0b4eef5030575e8ebdf35ca19fbc77376c70b9 (patch) | |
tree | ec8c1307ffa573765dc6a3155554a87a41fd2a51 /ui/app/components/send_/tests/send-selectors.test.js | |
parent | 166fda58777748141859c0a674a5fce454cfc3d3 (diff) | |
download | tangerine-wallet-browser-4f0b4eef5030575e8ebdf35ca19fbc77376c70b9.tar.gz tangerine-wallet-browser-4f0b4eef5030575e8ebdf35ca19fbc77376c70b9.tar.zst tangerine-wallet-browser-4f0b4eef5030575e8ebdf35ca19fbc77376c70b9.zip |
Estimate gas using same algorithm as backend.
Diffstat (limited to 'ui/app/components/send_/tests/send-selectors.test.js')
-rw-r--r-- | ui/app/components/send_/tests/send-selectors.test.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ui/app/components/send_/tests/send-selectors.test.js b/ui/app/components/send_/tests/send-selectors.test.js index 22e45afdb..152af8059 100644 --- a/ui/app/components/send_/tests/send-selectors.test.js +++ b/ui/app/components/send_/tests/send-selectors.test.js @@ -5,6 +5,7 @@ const { accountsWithSendEtherInfoSelector, // autoAddToBetaUI, getAddressBook, + getBlockGasLimit, getAmountConversionRate, getConversionRate, getConvertedCurrency, @@ -135,6 +136,15 @@ describe('send selectors', () => { }) }) + describe('getBlockGasLimit', () => { + it('should return the current block gas limit', () => { + assert.deepEqual( + getBlockGasLimit(mockState), + '0x4c1878' + ) + }) + }) + describe('getConversionRate()', () => { it('should return the eth conversion rate', () => { assert.deepEqual( |