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

Function initInputEvent

src/event/createEvent.ts:126–135  ·  view source on GitHub ↗
(
  event: InputEvent,
  {data, inputType, isComposing}: InputEventInit,
)

Source from the content-addressed store, hash-verified

124}
125
126function initInputEvent(
127 event: InputEvent,
128 {data, inputType, isComposing}: InputEventInit,
129) {
130 assignProps(event, {
131 data,
132 isComposing: Boolean(isComposing),
133 inputType: String(inputType),
134 })
135}
136
137function initUIEvent(event: UIEvent, {view, detail}: UIEventInit) {
138 assignProps(event, {

Callers

nothing calls this directly

Calls 1

assignPropsFunction · 0.85

Tested by

no test coverage detected