@@ -143,31 +143,27 @@ describe('setupLinkAware', () => {
143143 setupLinkAware ( mockEditor ) ;
144144
145145 // Verify that markUrls was called which sets the hint
146- expect ( mockEditor . markText ) . toHaveBeenCalledWith (
147- expect . anything ( ) ,
146+ expect ( mockEditor . markText ) . toHaveBeenCalledWith ( expect . anything ( ) ,
148147 expect . anything ( ) ,
149148 expect . objectContaining ( {
150149 attributes : expect . objectContaining ( {
151150 title : 'Hold Cmd and click to open link'
152151 } )
153- } )
154- ) ;
152+ } ) ) ;
155153 } ) ;
156154
157155 it ( 'should use Ctrl key hint on non-macOS' , ( ) => {
158156 isMacOS . mockReturnValue ( false ) ;
159157 setupLinkAware ( mockEditor ) ;
160158
161159 // Verify that markUrls was called which sets the hint
162- expect ( mockEditor . markText ) . toHaveBeenCalledWith (
163- expect . anything ( ) ,
160+ expect ( mockEditor . markText ) . toHaveBeenCalledWith ( expect . anything ( ) ,
164161 expect . anything ( ) ,
165162 expect . objectContaining ( {
166163 attributes : expect . objectContaining ( {
167164 title : 'Hold Ctrl and click to open link'
168165 } )
169- } )
170- ) ;
166+ } ) ) ;
171167 } ) ;
172168 } ) ;
173169
@@ -306,17 +302,15 @@ describe('setupLinkAware', () => {
306302 it ( 'should apply link tooltips when marking URLs' , ( ) => {
307303 setupLinkAware ( mockEditor ) ;
308304
309- expect ( mockEditor . markText ) . toHaveBeenCalledWith (
310- { line : 0 , ch : 10 } ,
305+ expect ( mockEditor . markText ) . toHaveBeenCalledWith ( { line : 0 , ch : 10 } ,
311306 { line : 0 , ch : 28 } ,
312307 {
313308 className : 'CodeMirror-link' ,
314309 attributes : {
315310 'data-url' : 'https://example.com' ,
316- title : 'Hold Cmd and click to open link'
311+ ' title' : 'Hold Cmd and click to open link'
317312 }
318- }
319- ) ;
313+ } ) ;
320314 } ) ;
321315 } ) ;
322316
@@ -338,9 +332,7 @@ describe('setupLinkAware', () => {
338332 it ( 'should add hover class on mouseover for link elements' , ( ) => {
339333 setupLinkAware ( mockEditor ) ;
340334
341- const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find (
342- ( call ) => call [ 0 ] === 'mouseover'
343- ) [ 1 ] ;
335+ const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find ( ( call ) => call [ 0 ] === 'mouseover' ) [ 1 ] ;
344336
345337 const mockTarget = {
346338 classList : {
@@ -377,9 +369,7 @@ describe('setupLinkAware', () => {
377369 it ( 'should not add hover class for non-link elements' , ( ) => {
378370 setupLinkAware ( mockEditor ) ;
379371
380- const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find (
381- ( call ) => call [ 0 ] === 'mouseover'
382- ) [ 1 ] ;
372+ const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find ( ( call ) => call [ 0 ] === 'mouseover' ) [ 1 ] ;
383373
384374 const mockTarget = {
385375 classList : {
@@ -431,9 +421,7 @@ describe('setupLinkAware', () => {
431421 it ( 'should handle multi-span links correctly on hover' , ( ) => {
432422 setupLinkAware ( mockEditor ) ;
433423
434- const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find (
435- ( call ) => call [ 0 ] === 'mouseover'
436- ) [ 1 ] ;
424+ const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find ( ( call ) => call [ 0 ] === 'mouseover' ) [ 1 ] ;
437425
438426 // Create a mock with a chain of link spans
439427 const mockNestedPrev = {
@@ -508,9 +496,7 @@ describe('setupLinkAware', () => {
508496 it ( 'should handle missing target in mouse event' , ( ) => {
509497 setupLinkAware ( mockEditor ) ;
510498
511- const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find (
512- ( call ) => call [ 0 ] === 'mouseover'
513- ) [ 1 ] ;
499+ const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find ( ( call ) => call [ 0 ] === 'mouseover' ) [ 1 ] ;
514500 const mockEvent = { target : null } ;
515501
516502 // Note: This will throw as the implementation accesses target.classList without null check
@@ -546,9 +532,7 @@ describe('setupLinkAware', () => {
546532 it ( 'should handle null siblings in mouseover events' , ( ) => {
547533 setupLinkAware ( mockEditor ) ;
548534
549- const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find (
550- ( call ) => call [ 0 ] === 'mouseover'
551- ) [ 1 ] ;
535+ const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find ( ( call ) => call [ 0 ] === 'mouseover' ) [ 1 ] ;
552536
553537 const mockTarget = {
554538 classList : {
@@ -568,9 +552,7 @@ describe('setupLinkAware', () => {
568552 it ( 'should handle non-link siblings in mouseover events' , ( ) => {
569553 setupLinkAware ( mockEditor ) ;
570554
571- const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find (
572- ( call ) => call [ 0 ] === 'mouseover'
573- ) [ 1 ] ;
555+ const mouseoverHandler = mockWrapperElement . addEventListener . mock . calls . find ( ( call ) => call [ 0 ] === 'mouseover' ) [ 1 ] ;
574556
575557 const mockPrev = {
576558 classList : {
0 commit comments