diff options
author | Thomas Huang <tmashuang@users.noreply.github.com> | 2019-04-02 09:03:54 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-04-02 09:03:54 +0800 |
commit | a46ec83c9b258a3aed65e1ef08769300c01ca13b (patch) | |
tree | a48f7ddb8635ffbb024ff755d1865686c8a0ab27 /test/unit/ui/app/reducers/metamask.spec.js | |
parent | 4055dc3475cb743e540766a8a8c704bb2b807502 (diff) | |
download | tangerine-wallet-browser-a46ec83c9b258a3aed65e1ef08769300c01ca13b.tar.gz tangerine-wallet-browser-a46ec83c9b258a3aed65e1ef08769300c01ca13b.tar.zst tangerine-wallet-browser-a46ec83c9b258a3aed65e1ef08769300c01ca13b.zip |
Remove NoticeController (#6382)
Diffstat (limited to 'test/unit/ui/app/reducers/metamask.spec.js')
-rw-r--r-- | test/unit/ui/app/reducers/metamask.spec.js | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/test/unit/ui/app/reducers/metamask.spec.js b/test/unit/ui/app/reducers/metamask.spec.js index 388c67c76..d7876bf39 100644 --- a/test/unit/ui/app/reducers/metamask.spec.js +++ b/test/unit/ui/app/reducers/metamask.spec.js @@ -35,49 +35,6 @@ describe('MetaMask Reducers', () => { assert.equal(state.isRevealingSeedWords, false) }) - it('shows notice', () => { - const notice = { - id: 0, - read: false, - date: 'Date', - title: 'Title', - body: 'Body', - } - - const state = reduceMetamask({}, { - type: actions.SHOW_NOTICE, - value: notice, - }) - - assert.equal(state.noActiveNotices, false) - assert.equal(state.nextUnreadNotice, notice) - }) - - it('clears notice', () => { - - const notice = { - id: 0, - read: false, - date: 'Date', - title: 'Title', - body: 'Body', - } - - const noticesState = { - metamask: { - noActiveNotices: false, - nextUnreadNotice: notice, - }, - } - - const state = reduceMetamask(noticesState, { - type: actions.CLEAR_NOTICES, - }) - - assert.equal(state.noActiveNotices, true) - assert.equal(state.nextUnreadNotice, null) - }) - it('unlocks MetaMask', () => { const state = reduceMetamask({}, { type: actions.UNLOCK_METAMASK, |