diff options
author | Dan <danjm.com@gmail.com> | 2018-05-20 08:38:25 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-31 07:24:31 +0800 |
commit | 17909465f283179aad39166b1191dbaba3770bf6 (patch) | |
tree | 90d540a75ef976a8e212d39d545a6b774280c9f4 /ui/app/components/send_/tests/send-utils.test.js | |
parent | 6f633a97e15e8277a065f987880cd666cc2fbf89 (diff) | |
download | tangerine-wallet-browser-17909465f283179aad39166b1191dbaba3770bf6.tar.gz tangerine-wallet-browser-17909465f283179aad39166b1191dbaba3770bf6.tar.zst tangerine-wallet-browser-17909465f283179aad39166b1191dbaba3770bf6.zip |
getParamsForGasEstimate extracts symbol from token instead of just accepting symbol.
Diffstat (limited to 'ui/app/components/send_/tests/send-utils.test.js')
-rw-r--r-- | ui/app/components/send_/tests/send-utils.test.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/send_/tests/send-utils.test.js b/ui/app/components/send_/tests/send-utils.test.js index 4d471bcc1..903b531e6 100644 --- a/ui/app/components/send_/tests/send-utils.test.js +++ b/ui/app/components/send_/tests/send-utils.test.js @@ -147,9 +147,9 @@ describe('send utils', () => { ) }) - it('should return value property if symbol provided', () => { + it('should return value property if selected token provided', () => { assert.deepEqual( - getParamsForGasEstimate('mockAddress', 'ABC'), + getParamsForGasEstimate('mockAddress', { symbol: 'ABC' }), { from: 'mockAddress', gas: '746a528800', @@ -160,7 +160,7 @@ describe('send utils', () => { it('should return data property if data provided', () => { assert.deepEqual( - getParamsForGasEstimate('mockAddress', 'ABC', 'somedata'), + getParamsForGasEstimate('mockAddress', { symbol: 'ABC' }, 'somedata'), { from: 'mockAddress', gas: '746a528800', |