aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/tx-state-manager-test.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-28 08:17:04 +0800
committerkumavis <aaron@kumavis.me>2018-03-28 08:17:04 +0800
commit5290570c8fc635856823e8f66b8f810f07b7948a (patch)
treecb98ac01c290f0c9786fc285469bb37e6a851910 /test/unit/tx-state-manager-test.js
parent4ee48acf5672f00d59c49ec68452cd1dd57afa31 (diff)
parentb6b18339e2de92afd2fb5364ec5bc4c29b4d10a3 (diff)
downloadtangerine-wallet-browser-5290570c8fc635856823e8f66b8f810f07b7948a.tar
tangerine-wallet-browser-5290570c8fc635856823e8f66b8f810f07b7948a.tar.gz
tangerine-wallet-browser-5290570c8fc635856823e8f66b8f810f07b7948a.tar.bz2
tangerine-wallet-browser-5290570c8fc635856823e8f66b8f810f07b7948a.tar.lz
tangerine-wallet-browser-5290570c8fc635856823e8f66b8f810f07b7948a.tar.xz
tangerine-wallet-browser-5290570c8fc635856823e8f66b8f810f07b7948a.tar.zst
tangerine-wallet-browser-5290570c8fc635856823e8f66b8f810f07b7948a.zip
Merge branch 'master' of github.com:MetaMask/metamask-extension into i18n-translator-redux
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)