Delete unused `UNLOCK_METAMASK` action (#8307)
This action was never triggered in practice, as MetaMask is never unlocked from the UI. The unlock always occurs as a result of a background state update.feature/default_network_editable
parent
5b64a3d75e
commit
2e67751efe
@ -1,35 +0,0 @@ |
|||||||
import assert from 'assert' |
|
||||||
import * as actions from '../../../ui/app/store/actions' |
|
||||||
import reducers from '../../../ui/app/ducks' |
|
||||||
|
|
||||||
describe('#unlockMetamask(selectedAccount)', function () { |
|
||||||
describe('after an error', function () { |
|
||||||
it('clears warning', function () { |
|
||||||
const warning = 'this is the wrong warning' |
|
||||||
const account = 'foo_account' |
|
||||||
const initialState = { |
|
||||||
appState: { |
|
||||||
warning: warning, |
|
||||||
}, |
|
||||||
} |
|
||||||
|
|
||||||
const resultState = reducers(initialState, actions.unlockMetamask(account)) |
|
||||||
assert.equal(resultState.appState.warning, null, 'warning nullified') |
|
||||||
}) |
|
||||||
}) |
|
||||||
|
|
||||||
describe('going home after an error', function () { |
|
||||||
it('clears warning', function () { |
|
||||||
const warning = 'this is the wrong warning' |
|
||||||
// const account = 'foo_account'
|
|
||||||
const initialState = { |
|
||||||
appState: { |
|
||||||
warning: warning, |
|
||||||
}, |
|
||||||
} |
|
||||||
|
|
||||||
const resultState = reducers(initialState, actions.goHome()) |
|
||||||
assert.equal(resultState.appState.warning, null, 'warning nullified') |
|
||||||
}) |
|
||||||
}) |
|
||||||
}) |
|
Loading…
Reference in new issue