Skip to content

Commit

Permalink
fix - auth tests updated
Browse files Browse the repository at this point in the history
  • Loading branch information
tony-blockchain committed Jun 29, 2018
1 parent 63a2a75 commit 115d8f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Expand Up @@ -376,6 +376,7 @@ export default ({ api, coreSagas }) => {
transferEthSaga,
upgradeWallet,
upgradeWalletSaga,
upgradeAddressLabelsSaga,
welcomeSaga
}
}
Expand Up @@ -277,7 +277,8 @@ describe('authSagas', () => {
setLogoutEventListener,
transferEthSaga,
upgradeWalletSaga,
welcomeSaga
welcomeSaga,
upgradeAddressLabelsSaga
} = authSagas({
api,
coreSagas
Expand Down Expand Up @@ -327,6 +328,10 @@ describe('authSagas', () => {
saga.next().put(actions.router.push('/home'))
})

it('should call upgrade address labels saga', () => {
saga.next().call(upgradeAddressLabelsSaga)
})

it('should trigger login success action', () => {
saga.next().put(actions.auth.loginSuccess())
})
Expand Down Expand Up @@ -412,7 +417,7 @@ describe('authSagas', () => {
[call.fn(setLogoutEventListener), jest.fn],
[fork.fn(logoutRoutine), jest.fn]
])
.put(actions.alerts.displaySuccess(C.LOGIN_SUCCESS))
.not.put(actions.alerts.displaySuccess(C.LOGIN_SUCCESS))
.run()
})

Expand Down

0 comments on commit 115d8f2

Please sign in to comment.