@@ -52,8 +52,8 @@ function createKeyEvent(
5252 shiftKey : modifiers . shift ?? false ,
5353 metaKey : modifiers . meta ?? false ,
5454 repeat : false ,
55- preventDefault : mock ( ( ) => { } ) ,
56- stopPropagation : mock ( ( ) => { } ) ,
55+ preventDefault : mock ( ( ) => { } ) ,
56+ stopPropagation : mock ( ( ) => { } ) ,
5757 } ;
5858}
5959
@@ -69,14 +69,14 @@ function createClipboardEvent(text: string | null): MockClipboardEvent {
6969 clipboardData :
7070 text !== null
7171 ? {
72- getData : ( format : string ) => data . get ( format ) || '' ,
73- setData : ( format : string , value : string ) => {
74- data . set ( format , value ) ;
75- } ,
76- }
72+ getData : ( format : string ) => data . get ( format ) || '' ,
73+ setData : ( format : string , value : string ) => {
74+ data . set ( format , value ) ;
75+ } ,
76+ }
7777 : null ,
78- preventDefault : mock ( ( ) => { } ) ,
79- stopPropagation : mock ( ( ) => { } ) ,
78+ preventDefault : mock ( ( ) => { } ) ,
79+ stopPropagation : mock ( ( ) => { } ) ,
8080 } ;
8181}
8282interface MockCompositionEvent {
@@ -94,8 +94,8 @@ function createCompositionEvent(
9494 return {
9595 type,
9696 data,
97- preventDefault : mock ( ( ) => { } ) ,
98- stopPropagation : mock ( ( ) => { } ) ,
97+ preventDefault : mock ( ( ) => { } ) ,
98+ stopPropagation : mock ( ( ) => { } ) ,
9999 } ;
100100}
101101// Helper to create mock container
@@ -140,7 +140,7 @@ function createMockContainer(): MockHTMLElement & {
140140 appendChild ( node : Node ) {
141141 this . childNodes . push ( node ) ;
142142 return node ;
143- }
143+ } ,
144144 } ;
145145}
146146
0 commit comments