aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/actions/tx_test.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-03-02 02:01:21 +0800
committerKevin Serrano <kevgagser@gmail.com>2017-03-02 02:01:21 +0800
commit0a3849ec8477b4a61c50d715bd72b3e8f1ea8b66 (patch)
treecb569b1419363928282cd9ae0b4862d436c8fa58 /test/unit/actions/tx_test.js
parent930dafc4b0648353f847c529cdc19e2d762553ad (diff)
parentf162a11585392df5e593018a02549f8b03018d22 (diff)
downloadtangerine-wallet-browser-0a3849ec8477b4a61c50d715bd72b3e8f1ea8b66.tar.gz
tangerine-wallet-browser-0a3849ec8477b4a61c50d715bd72b3e8f1ea8b66.tar.zst
tangerine-wallet-browser-0a3849ec8477b4a61c50d715bd72b3e8f1ea8b66.zip
Fix merge conflicts.
Diffstat (limited to 'test/unit/actions/tx_test.js')
-rw-r--r--test/unit/actions/tx_test.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/unit/actions/tx_test.js b/test/unit/actions/tx_test.js
index 7ded5b1ef..bd72a666e 100644
--- a/test/unit/actions/tx_test.js
+++ b/test/unit/actions/tx_test.js
@@ -52,7 +52,7 @@ describe('tx confirmation screen', function() {
clearSeedWordCache(cb) { cb() },
})
- let action = actions.cancelTx({id: firstTxId})
+ let action = actions.cancelTx({value: firstTxId})
result = reducers(initialState, action)
done()
})
@@ -121,7 +121,7 @@ describe('tx confirmation screen', function() {
metamask: {
unapprovedTxs: {
'1457634084250832': {
- id: 1457634084250832,
+ id: firstTxId,
status: "unconfirmed",
time: 1457634084250,
},
@@ -135,8 +135,9 @@ describe('tx confirmation screen', function() {
}
freeze(initialState)
+ // Mocking a background connection:
actions._setBackgroundConnection({
- approveTransaction(txId, cb) { cb() },
+ approveTransaction(firstTxId, cb) { cb() },
})
let action = actions.sendTx({id: firstTxId})(function(action) {
@@ -152,11 +153,6 @@ describe('tx confirmation screen', function() {
it('should transition to the first tx', function() {
assert.equal(result.appState.currentView.context, 0)
})
-
- it('should only have one unconfirmed tx remaining', function() {
- var count = getUnconfirmedTxCount(result)
- assert.equal(count, 1)
- })
})
})
});