aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Miller <danjm.com@gmail.com>2018-12-07 03:39:47 +0800
committerDan Miller <danjm.com@gmail.com>2018-12-13 01:23:37 +0800
commit20dbebae9fc96c968febc68a289976e7e147a7c8 (patch)
tree3c4e7f9d906839c66a428034a6c71e47e2f81352 /test
parent0e5e51b8ff8a1db66d5310fa0d8b07f6480007e1 (diff)
downloadtangerine-wallet-browser-20dbebae9fc96c968febc68a289976e7e147a7c8.tar
tangerine-wallet-browser-20dbebae9fc96c968febc68a289976e7e147a7c8.tar.gz
tangerine-wallet-browser-20dbebae9fc96c968febc68a289976e7e147a7c8.tar.bz2
tangerine-wallet-browser-20dbebae9fc96c968febc68a289976e7e147a7c8.tar.lz
tangerine-wallet-browser-20dbebae9fc96c968febc68a289976e7e147a7c8.tar.xz
tangerine-wallet-browser-20dbebae9fc96c968febc68a289976e7e147a7c8.tar.zst
tangerine-wallet-browser-20dbebae9fc96c968febc68a289976e7e147a7c8.zip
Adds network loading retry / error screen.
Diffstat (limited to 'test')
-rw-r--r--test/unit/ui/app/actions.spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/ui/app/actions.spec.js b/test/unit/ui/app/actions.spec.js
index df7d2ee8f..c7ac8b6cf 100644
--- a/test/unit/ui/app/actions.spec.js
+++ b/test/unit/ui/app/actions.spec.js
@@ -1079,8 +1079,10 @@ describe('Actions', () => {
describe('#setProviderType', () => {
let setProviderTypeSpy
+ let store
beforeEach(() => {
+ store = mockStore({ metamask: { provider: {} } })
setProviderTypeSpy = sinon.stub(background, 'setProviderType')
})
@@ -1089,13 +1091,11 @@ describe('Actions', () => {
})
it('', () => {
- const store = mockStore()
store.dispatch(actions.setProviderType())
assert(setProviderTypeSpy.calledOnce)
})
it('', () => {
- const store = mockStore()
const expectedActions = [
{ type: 'DISPLAY_WARNING', value: 'Had a problem changing networks!' },
]