it('handles USER_UPDATE_SUCCESS', () => {
   const response = { result: 1 };
   expect(reducers.editProfile(initialState, {
     type: types.USER_UPDATE_SUCCESS,
     response,
   })).to.eql({ error: null, loading: false });
 });
 it('handles USER_UPDATE_FAILURE', () => {
   const error = { error: 'error' };
   expect(reducers.editProfile({ user: null, error: null, loading: true }, {
     type: types.USER_UPDATE_FAILURE,
     error,
   })).to.eql({
     error, loading: false,
   });
 });
 it('handles USER_UPDATE_REQUEST', () => {
   expect(reducers.editProfile(initialState, {
     type: types.USER_UPDATE_REQUEST,
   })).to.eql({ error: null, loading: true });
 });
 it('returns the initial state', () => {
   expect(reducers.editProfile(undefined, {})).to.eql(initialState);
 });