Guest User

Untitled

a guest
Jan 22nd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. it('User should be able to sign up', () => {
  2. return testSaga(signUpUser, SIGN_UP)
  3. .next()
  4. .all([put(toggleLoading(loadingTruePayload)), call(delay, 500)])
  5. .next()
  6. .call(API.postData, signUp(), undefined, 'json')
  7. .next(signUpResponse)
  8. .put(signUpSuccess(signUpResponse))
  9. .next()
  10. .put(toggleLoading(loadingFalsePayload))
  11. .done
  12. });
Add Comment
Please, Sign In to add comment