import { fireEvent } from '@testing-library/dom' ; import { isValidInputTimeValue } from '../../utils' ; export function fireChangeForInputTimeIfValid ( el , prevValue , timeNewEntry ) { if ( isValidInputTimeValue ( el , timeNewEntry ) && prevValue !== timeNewEntry ) { fireEvent . change ( el , { target : { value : timeNewEntry } } ) ; } }