diff options
author | Dan Finlay <flyswatter@users.noreply.github.com> | 2017-02-28 02:28:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-28 02:28:31 +0800 |
commit | ab01fef1c0ffddf09a20f90a910e5e068cf8c71e (patch) | |
tree | 0fe9d0322bb39f42d3170b56d0eca7a90985400c /test/unit/actions | |
parent | 09c7b9d242f66db99c80f22fae00dfdb894e2adc (diff) | |
parent | c831043a5125c093a83857a335c7816627a7e291 (diff) | |
download | tangerine-wallet-browser-ab01fef1c0ffddf09a20f90a910e5e068cf8c71e.tar tangerine-wallet-browser-ab01fef1c0ffddf09a20f90a910e5e068cf8c71e.tar.gz tangerine-wallet-browser-ab01fef1c0ffddf09a20f90a910e5e068cf8c71e.tar.bz2 tangerine-wallet-browser-ab01fef1c0ffddf09a20f90a910e5e068cf8c71e.tar.lz tangerine-wallet-browser-ab01fef1c0ffddf09a20f90a910e5e068cf8c71e.tar.xz tangerine-wallet-browser-ab01fef1c0ffddf09a20f90a910e5e068cf8c71e.tar.zst tangerine-wallet-browser-ab01fef1c0ffddf09a20f90a910e5e068cf8c71e.zip |
Merge pull request #1149 from MetaMask/i1114-AddPersonalSign
Add personal_sign
Diffstat (limited to 'test/unit/actions')
-rw-r--r-- | test/unit/actions/tx_test.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/unit/actions/tx_test.js b/test/unit/actions/tx_test.js index 7ded5b1ef..bd72a666e 100644 --- a/test/unit/actions/tx_test.js +++ b/test/unit/actions/tx_test.js @@ -52,7 +52,7 @@ describe('tx confirmation screen', function() { clearSeedWordCache(cb) { cb() }, }) - let action = actions.cancelTx({id: firstTxId}) + let action = actions.cancelTx({value: firstTxId}) result = reducers(initialState, action) done() }) @@ -121,7 +121,7 @@ describe('tx confirmation screen', function() { metamask: { unapprovedTxs: { '1457634084250832': { - id: 1457634084250832, + id: firstTxId, status: "unconfirmed", time: 1457634084250, }, @@ -135,8 +135,9 @@ describe('tx confirmation screen', function() { } freeze(initialState) + // Mocking a background connection: actions._setBackgroundConnection({ - approveTransaction(txId, cb) { cb() }, + approveTransaction(firstTxId, cb) { cb() }, }) let action = actions.sendTx({id: firstTxId})(function(action) { @@ -152,11 +153,6 @@ describe('tx confirmation screen', function() { it('should transition to the first tx', function() { assert.equal(result.appState.currentView.context, 0) }) - - it('should only have one unconfirmed tx remaining', function() { - var count = getUnconfirmedTxCount(result) - assert.equal(count, 1) - }) }) }) }); |