( type: 'compositionstart' | 'compositionupdate' | 'compositionend', data: string | null )
| 88 | |
| 89 | // Helper to create mock composition event |
| 90 | function 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 |
| 102 | function createMockContainer(): MockHTMLElement & { |
| 103 | _listeners: Map<string, ((e: any) => void)[]>; |
no outgoing calls
no test coverage detected
searching dependent graphs…