You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
493 B

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.fireChangeForInputTimeIfValid = fireChangeForInputTimeIfValid;
var _dom = require("@testing-library/dom");
var _utils = require("../../utils");
function fireChangeForInputTimeIfValid(el, prevValue, timeNewEntry) {
if ((0, _utils.isValidInputTimeValue)(el, timeNewEntry) && prevValue !== timeNewEntry) {
_dom.fireEvent.change(el, {
target: {
value: timeNewEntry
}
});
}
}