import {render} from '@testing-library/react-native';

import {IButtonTypes} from '../../../../cta/components/Button/types';
import ModalAsk from '../ModalAsk';

describe('@lad-tech/mobydick-core/modalAsk', () => {
  it('should renders correctly', () => {
    const {toJSON} = render(
      <ModalAsk
        title={'title'}
        descriptionText={'descriptionText'}
        onPressRight={() => null}
        id={'id'}
        onClose={() => null}
      />,
    );

    expect(toJSON()).toMatchSnapshot();
  });
  it('should renders correctly with optional', () => {
    const {toJSON} = render(
      <ModalAsk
        title={'title'}
        descriptionText={'descriptionText'}
        onPressRight={() => null}
        typeRight={IButtonTypes.primary}
        textRight={'textRight'}
        typeLeft={IButtonTypes.primary}
        textLeft={'textLeft'}
        id={'id'}
        onClose={() => null}
      />,
    );

    expect(toJSON()).toMatchSnapshot();
  });
});
