mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Remove irrelevant tests
This commit is contained in:
parent
961a83769b
commit
d1bce61996
@ -52,7 +52,7 @@ describe('tx confirmation screen', function() {
|
|||||||
clearSeedWordCache(cb) { cb() },
|
clearSeedWordCache(cb) { cb() },
|
||||||
})
|
})
|
||||||
|
|
||||||
let action = actions.cancelTx({id: firstTxId})
|
let action = actions.cancelTx({value: firstTxId})
|
||||||
result = reducers(initialState, action)
|
result = reducers(initialState, action)
|
||||||
done()
|
done()
|
||||||
})
|
})
|
||||||
@ -121,7 +121,7 @@ describe('tx confirmation screen', function() {
|
|||||||
metamask: {
|
metamask: {
|
||||||
unapprovedTxs: {
|
unapprovedTxs: {
|
||||||
'1457634084250832': {
|
'1457634084250832': {
|
||||||
id: 1457634084250832,
|
id: firstTxId,
|
||||||
status: "unconfirmed",
|
status: "unconfirmed",
|
||||||
time: 1457634084250,
|
time: 1457634084250,
|
||||||
},
|
},
|
||||||
@ -135,8 +135,9 @@ describe('tx confirmation screen', function() {
|
|||||||
}
|
}
|
||||||
freeze(initialState)
|
freeze(initialState)
|
||||||
|
|
||||||
|
// Mocking a background connection:
|
||||||
actions._setBackgroundConnection({
|
actions._setBackgroundConnection({
|
||||||
approveTransaction(txId, cb) { cb() },
|
approveTransaction(firstTxId, cb) { cb() },
|
||||||
})
|
})
|
||||||
|
|
||||||
let action = actions.sendTx({id: firstTxId})(function(action) {
|
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() {
|
it('should transition to the first tx', function() {
|
||||||
assert.equal(result.appState.currentView.context, 0)
|
assert.equal(result.appState.currentView.context, 0)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should only have one unconfirmed tx remaining', function() {
|
|
||||||
var count = getUnconfirmedTxCount(result)
|
|
||||||
assert.equal(count, 1)
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user