import { TestBed } from '@kbn/test/jest' ; import { Phase } from '../../../../common/types' ; import { createFormSetValueAction } from './form_set_value_action' ; export const createMinAgeActions = ( testBed , phase ) => { const { exists } = testBed ; return { hasMinAgeInput : ( ) => exists ( `${ phase }-selectedMinimumAge` ) , setMinAgeValue : createFormSetValueAction ( testBed , `${ phase }-selectedMinimumAge` ) , setMinAgeUnits : createFormSetValueAction ( testBed , `${ phase }-selectedMinimumAgeUnits` ) , hasRolloverTipOnMinAge : ( ) => exists ( `${ phase }-rolloverMinAgeInputIconTip` ) , } ; } ;