aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-08-15 10:34:22 +0800
committerkumavis <aaron@kumavis.me>2017-08-15 10:34:22 +0800
commita9e5564e8d8485741fd09efd994493fb1d8af614 (patch)
tree6da6bad1907d73d92f47200cfae398b95470d3ba /test/unit
parent1af797b1b3a37d8fe00afbd0d84cb3349b8fd471 (diff)
downloadtangerine-wallet-browser-a9e5564e8d8485741fd09efd994493fb1d8af614.tar
tangerine-wallet-browser-a9e5564e8d8485741fd09efd994493fb1d8af614.tar.gz
tangerine-wallet-browser-a9e5564e8d8485741fd09efd994493fb1d8af614.tar.bz2
tangerine-wallet-browser-a9e5564e8d8485741fd09efd994493fb1d8af614.tar.lz
tangerine-wallet-browser-a9e5564e8d8485741fd09efd994493fb1d8af614.tar.xz
tangerine-wallet-browser-a9e5564e8d8485741fd09efd994493fb1d8af614.tar.zst
tangerine-wallet-browser-a9e5564e8d8485741fd09efd994493fb1d8af614.zip
tx controller - test - fix typo from moved test
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/tx-controller-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index 38305f658..7bb193242 100644
--- a/test/unit/tx-controller-test.js
+++ b/test/unit/tx-controller-test.js
@@ -306,9 +306,9 @@ describe('Transaction Controller', function () {
txController.addTx(txMeta)
const updatedTx = txController.getTx('1')
// verify tx was initialized correctly
- assert.equal(result.history.length, 1, 'one history item (initial)')
- assert.equal(Array.isArray(result.history[0]), false, 'first history item is initial state')
- assert.deepEqual(result.history[0], txStateHistoryHelper.snapshotFromTxMeta(updatedTx), 'first history item is initial state')
+ assert.equal(updatedTx.history.length, 1, 'one history item (initial)')
+ assert.equal(Array.isArray(updatedTx.history[0]), false, 'first history item is initial state')
+ assert.deepEqual(updatedTx.history[0], txStateHistoryHelper.snapshotFromTxMeta(updatedTx), 'first history item is initial state')
// modify value and updateTx
updatedTx.txParams.gasPrice = desiredGasPrice
txController.updateTx(updatedTx)