diff options
author | Dan <danjm.com@gmail.com> | 2018-05-22 16:10:06 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-31 07:24:31 +0800 |
commit | 166fda58777748141859c0a674a5fce454cfc3d3 (patch) | |
tree | b8f743c927ff55ee02be61b013d3c726711381c3 /ui/app/components/send_/tests/send-selectors.test.js | |
parent | 17909465f283179aad39166b1191dbaba3770bf6 (diff) | |
download | tangerine-wallet-browser-166fda58777748141859c0a674a5fce454cfc3d3.tar.gz tangerine-wallet-browser-166fda58777748141859c0a674a5fce454cfc3d3.tar.zst tangerine-wallet-browser-166fda58777748141859c0a674a5fce454cfc3d3.zip |
Simplify gas estimate actions and add local estimateGasPriceFromRecentBlocks method.
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 977fe2a47..22e45afdb 100644 --- a/ui/app/components/send_/tests/send-selectors.test.js +++ b/ui/app/components/send_/tests/send-selectors.test.js @@ -17,6 +17,7 @@ const { getGasPrice, getGasTotal, getPrimaryCurrency, + getRecentBlocks, getSelectedAccount, getSelectedAddress, getSelectedIdentity, @@ -239,6 +240,15 @@ describe('send selectors', () => { }) }) + describe('getRecentBlocks()', () => { + it('should return the recent blocks', () => { + assert.deepEqual( + getRecentBlocks(mockState), + ['mockBlock1', 'mockBlock2', 'mockBlock3'] + ) + }) + }) + describe('getSelectedAccount()', () => { it('should return the currently selected account', () => { assert.deepEqual( |