MCPcopy Create free account
hub / github.com/testing-library/user-event / isValidInputTimeValue

Function isValidInputTimeValue

src/utils/edit/isValidInputTimeValue.ts:1–8  ·  view source on GitHub ↗
(
  element: HTMLInputElement & {type: 'time'},
  timeValue: string,
)

Source from the content-addressed store, hash-verified

1export function isValidInputTimeValue(
2 element: HTMLInputElement & {type: 'time'},
3 timeValue: string,
4): boolean {
5 const clone = element.cloneNode() as HTMLInputElement
6 clone.value = timeValue
7 return clone.value === timeValue
8}

Callers 3

calculateNewValueFunction · 0.90
character.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected