{"size": 1203, "ext": "js", "max_stars_repo_path": "app/containers/Auth/Password/Reset/Confirm/__tests__/actions.test.js", "max_stars_repo_name": "react-shinto/react-shinto", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/containers/Auth/Password/Reset/Confirm/__tests__/actions.test.js", "max_issues_repo_name": "react-shinto/react-shinto", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/containers/Auth/Password/Reset/Confirm/__tests__/actions.test.js", "max_forks_repo_name": "react-shinto/react-shinto", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 26.152173913, "max_line_length": 60, "alphanum_fraction": 0.6500415628}
import {
  passwordResetConfirmRequest,
  passwordResetConfirmSuccess,
  passwordResetConfirmFailure,
} from '../actions';

import {
  AUTH_PASSWORD_RESET_CONFIRM_REQUEST,
  AUTH_PASSWORD_RESET_CONFIRM_SUCCESS,
  AUTH_PASSWORD_RESET_CONFIRM_FAILURE,
} from '../constants';

describe('Password ResetConfirm Actions', () => {
  describe('passwordResetConfirmRequest', () => {
    it('should return the correct type', () => {
      const payload = {
        email: 'email@email.com',
        username: 'username',
        password: 'password',
        passwordConfirm: 'password',
      };

      expect(passwordResetConfirmRequest(payload)).toEqual({
        type: AUTH_PASSWORD_RESET_CONFIRM_REQUEST,
        payload,
      });
    });
  });

  describe('passwordResetConfirmSuccess', () => {
    it('should return the correct type', () => {
      expect(passwordResetConfirmSuccess()).toEqual({
        type: AUTH_PASSWORD_RESET_CONFIRM_SUCCESS,
      });
    });
  });

  describe('passwordResetConfirmFailure', () => {
    it('should return the correct type', () => {
      expect(passwordResetConfirmFailure()).toEqual({
        type: AUTH_PASSWORD_RESET_CONFIRM_FAILURE,
      });
    });
  });
});
