aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFrankie <frankie.diamond@gmail.com>2018-05-22 07:00:44 +0800
committerAlexander Tseung <alextsg@users.noreply.github.com>2018-05-22 07:00:44 +0800
commite8b2e11c5624d80f535c1344d9c9be48627b1319 (patch)
tree8d66e7892bc242b978590b80ea7f9bcde0d5f0a3 /test
parent45ad37162287a1db30caa8eeea89442d303ea883 (diff)
downloadtangerine-wallet-browser-e8b2e11c5624d80f535c1344d9c9be48627b1319.tar
tangerine-wallet-browser-e8b2e11c5624d80f535c1344d9c9be48627b1319.tar.gz
tangerine-wallet-browser-e8b2e11c5624d80f535c1344d9c9be48627b1319.tar.bz2
tangerine-wallet-browser-e8b2e11c5624d80f535c1344d9c9be48627b1319.tar.lz
tangerine-wallet-browser-e8b2e11c5624d80f535c1344d9c9be48627b1319.tar.xz
tangerine-wallet-browser-e8b2e11c5624d80f535c1344d9c9be48627b1319.tar.zst
tangerine-wallet-browser-e8b2e11c5624d80f535c1344d9c9be48627b1319.zip
Reveal get filtered tx list (#4332)
* add getFilteredTxList from txController to getApi * transactions - remove dead code (isNonceTaken)
Diffstat (limited to 'test')
-rw-r--r--test/unit/tx-controller-test.js30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/unit/tx-controller-test.js b/test/unit/tx-controller-test.js
index ddd921652..0b5c7226a 100644
--- a/test/unit/tx-controller-test.js
+++ b/test/unit/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()