diff options
author | tmashuang <thomas.b.huang@gmail.com> | 2018-05-22 07:36:48 +0800 |
---|---|---|
committer | tmashuang <thomas.b.huang@gmail.com> | 2018-05-22 07:36:48 +0800 |
commit | 238f2eb179895bbb9e2a2ec26863041564c90a9d (patch) | |
tree | ada33021efc445a4a995f1cb701cbbac9b683f94 /test/unit | |
parent | 848f8f805b54104d57aaf15f0cc14c36aa37edd2 (diff) | |
parent | e8b2e11c5624d80f535c1344d9c9be48627b1319 (diff) | |
download | tangerine-wallet-browser-238f2eb179895bbb9e2a2ec26863041564c90a9d.tar tangerine-wallet-browser-238f2eb179895bbb9e2a2ec26863041564c90a9d.tar.gz tangerine-wallet-browser-238f2eb179895bbb9e2a2ec26863041564c90a9d.tar.bz2 tangerine-wallet-browser-238f2eb179895bbb9e2a2ec26863041564c90a9d.tar.lz tangerine-wallet-browser-238f2eb179895bbb9e2a2ec26863041564c90a9d.tar.xz tangerine-wallet-browser-238f2eb179895bbb9e2a2ec26863041564c90a9d.tar.zst tangerine-wallet-browser-238f2eb179895bbb9e2a2ec26863041564c90a9d.zip |
Merge branch 'develop' into testing
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/app/controllers/transactions/tx-controller-test.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/unit/app/controllers/transactions/tx-controller-test.js b/test/unit/app/controllers/transactions/tx-controller-test.js index f1d67f64e..1f32a0f37 100644 --- a/test/unit/app/controllers/transactions/tx-controller-test.js +++ b/test/unit/app/controllers/transactions/tx-controller-test.js @@ -40,36 +40,6 @@ describe('Transaction Controller', function () { txController.nonceTracker.getNonceLock = () => Promise.resolve({ nextNonce: 0, releaseLock: noop }) }) - describe('#isNonceTaken', function () { - it('should return true', function (done) { - txController.txStateManager._saveTxList([ - { id: 1, status: 'submitted', metamaskNetworkId: currentNetworkId, txParams: {nonce: 0, from: '0x8ACCE2391C0d510a6C5E5D8f819A678F79B7E675'} }, - { id: 2, status: 'confirmed', metamaskNetworkId: currentNetworkId, txParams: {nonce: 0, from: '0x8ACCE2391C0d510a6C5E5D8f819A678F79B7E675'} }, - { id: 3, status: 'submitted', metamaskNetworkId: currentNetworkId, txParams: {nonce: 0, from: '0x8ACCE2391C0d510a6C5E5D8f819A678F79B7E675'} }, - ]) - txController.isNonceTaken({txParams: {nonce:0, from:'0x8ACCE2391C0d510a6C5E5D8f819A678F79B7E675'}}) - .then((isNonceTaken) => { - assert(isNonceTaken) - done() - }).catch(done) - - }) - it('should return false', function (done) { - txController.txStateManager._saveTxList([ - { id: 1, status: 'submitted', metamaskNetworkId: currentNetworkId, txParams: {nonce: 0, from: '0x8ACCE2391C0d510a6C5E5D8f819A678F79B7E675'} }, - { id: 2, status: 'submitted', metamaskNetworkId: currentNetworkId, txParams: {nonce: 0, from: '0x8ACCE2391C0d510a6C5E5D8f819A678F79B7E675'} }, - { id: 3, status: 'submitted', metamaskNetworkId: currentNetworkId, txParams: {nonce: 0, from: '0x8ACCE2391C0d510a6C5E5D8f819A678F79B7E675'} }, - ]) - - txController.isNonceTaken({txParams: {nonce:0, from:'0x8ACCE2391C0d510a6C5E5D8f819A678F79B7E675'}}) - .then((isNonceTaken) => { - assert(!isNonceTaken) - done() - }).catch(done) - - }) - }) - describe('#getState', function () { it('should return a state object with the right keys and datat types', function () { const exposedState = txController.getState() |