aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2018-04-14 03:38:07 +0800
committerfrankiebee <frankie.diamond@gmail.com>2018-04-14 03:38:07 +0800
commit88f4212363601b2bb3778f4090235a0a0740b4c9 (patch)
tree931e582cc17ce003a02776176e91b0abf6002a59 /test
parent3aaa28531e1b05a93a68d8016d1648191cdc9696 (diff)
downloadtangerine-wallet-browser-88f4212363601b2bb3778f4090235a0a0740b4c9.tar
tangerine-wallet-browser-88f4212363601b2bb3778f4090235a0a0740b4c9.tar.gz
tangerine-wallet-browser-88f4212363601b2bb3778f4090235a0a0740b4c9.tar.bz2
tangerine-wallet-browser-88f4212363601b2bb3778f4090235a0a0740b4c9.tar.lz
tangerine-wallet-browser-88f4212363601b2bb3778f4090235a0a0740b4c9.tar.xz
tangerine-wallet-browser-88f4212363601b2bb3778f4090235a0a0740b4c9.tar.zst
tangerine-wallet-browser-88f4212363601b2bb3778f4090235a0a0740b4c9.zip
meta - transactions - code clean up and jsDoc
Diffstat (limited to 'test')
-rw-r--r--test/unit/tx-controller-test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index 08f16d83b..20d6f8573 100644
--- a/test/unit/tx-controller-test.js
+++ b/test/unit/tx-controller-test.js
@@ -188,7 +188,7 @@ describe('Transaction Controller', function () {
})
- describe('#addTxDefaults', function () {
+ describe('#addTxGasDefaults', function () {
it('should add the tx defaults if their are none', function (done) {
const txMeta = {
'txParams': {
@@ -199,7 +199,7 @@ describe('Transaction Controller', function () {
providerResultStub.eth_gasPrice = '4a817c800'
providerResultStub.eth_getBlockByNumber = { gasLimit: '47b784' }
providerResultStub.eth_estimateGas = '5209'
- txController.addTxDefaults(txMeta)
+ txController.addTxGasDefaults(txMeta)
.then((txMetaWithDefaults) => {
assert(txMetaWithDefaults.txParams.value, '0x0', 'should have added 0x0 as the value')
assert(txMetaWithDefaults.txParams.gasPrice, 'should have added the gas price')