Guest User

Untitled

a guest
May 12th, 2018
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. import {
  2. fetchUserInfo,
  3. FETCH_USER_INFO_REQUEST_SUCCESS,
  4. fetchUserLogin,
  5. FETCH_USER_LOGIN_REQUEST_SUCCESS,
  6. userLogout,
  7. LOGOUT_USER,
  8. createUser,
  9. FETCH_USER_SIGNUP_REQUEST_SUCCESS
  10. } from './actions/index.actions';
  11.  
  12. describe('Fetch user info', () => {
  13. it('Should return a users info', () => {
  14. const userId = ;
  15. const action = fetchUserInfo(userId);
  16. expect(action.type).toEqual(FETCH_USER_INFO_REQUEST_SUCCESS);
  17. })
  18. })
  19.  
  20. describe('Login user', () => {
  21. it('Should log user in', () => {
  22. const user = {
  23. userEmail: 'test@test.com',
  24. userPassword: 'test'
  25. };
  26.  
  27. })
  28. })
Add Comment
Please, Sign In to add comment