import { mapStateToProps } from './MedicalConditionsForm.state';

describe('.mapStateToProps', () => {
  it('returns returns patient and recorder uuids', () => {
    const state = {
      entities: {
        patient: {
          uuid: 'testPatientUuid'
        },
        user: {
          uuid: 'testUserUuid'
        }
      }
    };
    const expectedProps = {
      patient: 'testPatientUuid',
      recorder: 'testUserUuid'
    };
    expect(mapStateToProps(state)).toEqual(expectedProps);
  });
});
