(touches: Touch[])
| 26 | |
| 27 | // Helper function to create mock TouchList |
| 28 | function createMockTouchList(touches: Touch[]): TouchList { |
| 29 | const touchList = { |
| 30 | length: touches.length, |
| 31 | item: (index: number) => touches[index] || null, |
| 32 | ...touches |
| 33 | }; |
| 34 | return touchList as TouchList; |
| 35 | } |
| 36 | |
| 37 | // Helper function to create mock TouchEvent |
| 38 | function createMockTouchEvent(type: string, touches: Touch[], options: Partial<TouchEvent> = {}): TouchEvent { |
no outgoing calls
no test coverage detected