MCPcopy Create free account
hub / github.com/coder/ghostty-web / createCompositionEvent

Function createCompositionEvent

lib/input-handler.test.ts:90–100  ·  view source on GitHub ↗
(
  type: 'compositionstart' | 'compositionupdate' | 'compositionend',
  data: string | null
)

Source from the content-addressed store, hash-verified

88
89// Helper to create mock composition event
90function createCompositionEvent(
91 type: 'compositionstart' | 'compositionupdate' | 'compositionend',
92 data: string | null
93): MockCompositionEvent {
94 return {
95 type,
96 data,
97 preventDefault: mock(() => {}),
98 stopPropagation: mock(() => {}),
99 };
100}
101// Helper to create mock container
102function createMockContainer(): MockHTMLElement & {
103 _listeners: Map<string, ((e: any) => void)[]>;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…