diff options
author | Frankie <frankie.diamond@gmail.com> | 2019-08-29 20:57:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-29 20:57:28 +0800 |
commit | f6d25357dbd5ee12a3841e863549961f7ea1a88d (patch) | |
tree | 93b88e06e9245d926ac70ce4a13e86c9382f0ef2 /test/unit/app/controllers/transactions/tx-state-manager-test.js | |
parent | b8e69369d54763cc58695687738ac3885014f3b4 (diff) | |
download | tangerine-wallet-browser-f6d25357dbd5ee12a3841e863549961f7ea1a88d.tar.gz tangerine-wallet-browser-f6d25357dbd5ee12a3841e863549961f7ea1a88d.tar.zst tangerine-wallet-browser-f6d25357dbd5ee12a3841e863549961f7ea1a88d.zip |
transactions:tx-state-manager - optionally take a function as a search param (#7078)
Diffstat (limited to 'test/unit/app/controllers/transactions/tx-state-manager-test.js')
-rw-r--r-- | test/unit/app/controllers/transactions/tx-state-manager-test.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/app/controllers/transactions/tx-state-manager-test.js b/test/unit/app/controllers/transactions/tx-state-manager-test.js index 48343bcd7..02d6199e9 100644 --- a/test/unit/app/controllers/transactions/tx-state-manager-test.js +++ b/test/unit/app/controllers/transactions/tx-state-manager-test.js @@ -303,6 +303,9 @@ describe('TransactionStateManager', function () { assert.equal(txStateManager.getFilteredTxList(filterParams).length, 5, `getFilteredTxList - ${JSON.stringify(filterParams)}`) filterParams = { to: '0xaa' } assert.equal(txStateManager.getFilteredTxList(filterParams).length, 5, `getFilteredTxList - ${JSON.stringify(filterParams)}`) + filterParams = { status: (status) => status !== 'confirmed' } + assert.equal(txStateManager.getFilteredTxList(filterParams).length, 5, `getFilteredTxList - ${JSON.stringify(filterParams)}`) + }) }) |