aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/tests
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-06-15 05:04:14 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-06-15 05:58:42 +0800
commit1b9ed237527b9970c3dfcbb0234cfdb2ffa8c807 (patch)
tree2a2f2d53cce25455c8c41b6cc4393cb5bd2efab3 /ui/app/components/send_/tests
parent299abee666d7f8347e062afff4f2fae47c7f6968 (diff)
downloadtangerine-wallet-browser-1b9ed237527b9970c3dfcbb0234cfdb2ffa8c807.tar.gz
tangerine-wallet-browser-1b9ed237527b9970c3dfcbb0234cfdb2ffa8c807.tar.zst
tangerine-wallet-browser-1b9ed237527b9970c3dfcbb0234cfdb2ffa8c807.zip
Add hex-prefix to gas estimate result
Diffstat (limited to 'ui/app/components/send_/tests')
-rw-r--r--ui/app/components/send_/tests/send-utils.test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/send_/tests/send-utils.test.js b/ui/app/components/send_/tests/send-utils.test.js
index b3f6372ef..6db875342 100644
--- a/ui/app/components/send_/tests/send-utils.test.js
+++ b/ui/app/components/send_/tests/send-utils.test.js
@@ -285,7 +285,7 @@ describe('send utils', () => {
baseMockParams.estimateGasMethod.getCall(0).args[0],
Object.assign({ gasPrice: undefined, value: undefined }, baseExpectedCall)
)
- assert.equal(result, 'mockToString:16')
+ assert.equal(result, '0xmockToString:16')
})
it('should call ethQuery.estimateGas with a value of 0x0 and the expected data and to if passed a selectedToken', async () => {
@@ -300,7 +300,7 @@ describe('send utils', () => {
to: 'mockAddress',
})
)
- assert.equal(result, 'mockToString:16')
+ assert.equal(result, '0xmockToString:16')
})
it(`should return ${SIMPLE_GAS_COST} if ethQuery.getCode does not return '0x'`, async () => {