Skip to content

Commit

Permalink
test(Login): failure
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed May 30, 2018
1 parent c5d2073 commit b80d4fd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ describe('authSagas', () => {
gen.next()
gen.next('sessionToken')
gen.next('123abc456def')
gen.next()
gen.next()
console.log(gen.throw(new Error()))
expect(gen.next().value).toEqual(put(actions.auth.loginLoading()))
expect(gen.throw({ message: 'error' }).value).toEqual(put(actions.auth.loginFailure('error')))
})
})
})

0 comments on commit b80d4fd

Please sign in to comment.