1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

tx controller - test - fix typo from moved test

This commit is contained in:
kumavis 2017-08-14 19:34:22 -07:00
parent 1af797b1b3
commit a9e5564e8d

View File

@ -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)