aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/tx-state-manager-test.js
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2018-03-27 09:09:28 +0800
committerfrankiebee <frankie.diamond@gmail.com>2018-03-28 07:49:13 +0800
commitf0f45e6fe19fec01f7fff9df0e9e04015f82f3d2 (patch)
treea04ef6bac867cd434713796b7b8bd600671f999b /test/unit/tx-state-manager-test.js
parent43dde3cbde4118ef5d5b40faca6af8b308a1a902 (diff)
downloadtangerine-wallet-browser-f0f45e6fe19fec01f7fff9df0e9e04015f82f3d2.tar.gz
tangerine-wallet-browser-f0f45e6fe19fec01f7fff9df0e9e04015f82f3d2.tar.zst
tangerine-wallet-browser-f0f45e6fe19fec01f7fff9df0e9e04015f82f3d2.zip
migration for removing unnecessary transactions from state
Diffstat (limited to 'test/unit/tx-state-manager-test.js')
-rw-r--r--test/unit/tx-state-manager-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/tx-state-manager-test.js b/test/unit/tx-state-manager-test.js
index 220bf501f..a5ac13664 100644
--- a/test/unit/tx-state-manager-test.js
+++ b/test/unit/tx-state-manager-test.js
@@ -240,12 +240,12 @@ describe('TransactionStateManager', function () {
})
describe('#wipeTransactions', function () {
-
+
const specificAddress = '0xaa'
const otherAddress = '0xbb'
it('should remove only the transactions from a specific address', function () {
-
+
const txMetas = [
{ id: 0, status: 'unapproved', txParams: { from: specificAddress, to: otherAddress }, metamaskNetworkId: currentNetworkId },
{ id: 1, status: 'confirmed', txParams: { from: otherAddress, to: specificAddress }, metamaskNetworkId: currentNetworkId },
@@ -268,7 +268,7 @@ describe('TransactionStateManager', function () {
{ id: 1, status: 'confirmed', txParams: { from: specificAddress, to: otherAddress }, metamaskNetworkId: otherNetworkId },
{ id: 2, status: 'confirmed', txParams: { from: specificAddress, to: otherAddress }, metamaskNetworkId: otherNetworkId },
]
-
+
txMetas.forEach((txMeta) => txStateManager.addTx(txMeta, noop))
txStateManager.wipeTransactions(specificAddress)