@@ -245,16 +245,16 @@ describe('JSX', () => {
245245 it ( 'Should find all anonymous functions passed as a prop' , ( ) => {
246246 const queries = [
247247 `
248- <$$$
249- $$={() => $$$}
250- />
251- ` ,
248+ <$$$
249+ $$={() => $$$}
250+ />
251+ ` ,
252252 `
253- <$$$
254- $$={() => $$$}
255- >
256- </$$$>
257- ` ,
253+ <$$$
254+ $$={() => $$$}
255+ >
256+ </$$$>
257+ ` ,
258258 ]
259259
260260 const { matches, errors } = searchInFileSystem ( {
@@ -272,9 +272,9 @@ describe('JSX', () => {
272272 />
273273 `
274274
275+ expect ( errors ) . toHaveLength ( 0 )
275276 expect ( matches . length ) . toBe ( 190 )
276277 expect ( compareCode ( matches [ 0 ] . code , firstResultCode ) ) . toBeTruthy ( )
277- expect ( errors ) . toHaveLength ( 0 )
278278 } )
279279
280280 it ( 'Should find all anonymous functions passed as event listener handler' , ( ) => {
@@ -307,9 +307,9 @@ describe('JSX', () => {
307307 />
308308 `
309309
310+ expect ( errors ) . toHaveLength ( 0 )
310311 expect ( matches . length ) . toBe ( 164 )
311312 expect ( compareCode ( matches [ 0 ] . code , firstResultCode ) ) . toBeTruthy ( )
312- expect ( errors ) . toHaveLength ( 0 )
313313 } )
314314
315315 it ( 'Should find all Elements pretending to be a wrapper' , ( ) => {
@@ -329,8 +329,8 @@ describe('JSX', () => {
329329 queryCodes : queries ,
330330 } )
331331
332- expect ( matches . length ) . toBe ( 34 )
333332 expect ( errors ) . toHaveLength ( 0 )
333+ expect ( matches . length ) . toBe ( 34 )
334334 } )
335335
336336 it ( 'Should find all title prop values which are strings' , ( ) => {
@@ -357,8 +357,8 @@ describe('JSX', () => {
357357 queryCodes : queries ,
358358 } )
359359
360- expect ( matches . length ) . toBe ( 78 )
361360 expect ( errors ) . toHaveLength ( 0 )
361+ expect ( matches . length ) . toBe ( 78 )
362362 } )
363363
364364 it ( 'Should ignore all empty JSXText in search' , ( ) => {
@@ -451,8 +451,8 @@ describe('JSX', () => {
451451 ] ,
452452 } )
453453
454- expect ( matches . length ) . toBe ( 4 )
455454 expect ( errors . length ) . toBe ( 0 )
455+ expect ( matches . length ) . toBe ( 4 )
456456 } )
457457
458458 it ( 'Not self-closing JSX tag in query should match also self-closing tags' , ( ) => {
@@ -483,8 +483,8 @@ describe('JSX', () => {
483483 ] ,
484484 } )
485485
486- expect ( matches . length ) . toBe ( 4 )
487486 expect ( errors . length ) . toBe ( 0 )
487+ expect ( matches . length ) . toBe ( 4 )
488488 } )
489489
490490 it ( 'Not self-closing JSX tag with children in query should not match self-closing tags' , ( ) => {
@@ -544,8 +544,8 @@ describe('JSX', () => {
544544 ] ,
545545 } )
546546
547- expect ( matches . length ) . toBe ( 2 )
548547 expect ( errors . length ) . toBe ( 0 )
548+ expect ( matches . length ) . toBe ( 2 )
549549 } )
550550 } )
551551
@@ -573,8 +573,8 @@ describe('JSX', () => {
573573 ] ,
574574 } )
575575
576- expect ( matches . length ) . toBe ( 2 )
577576 expect ( errors . length ) . toBe ( 0 )
577+ expect ( matches . length ) . toBe ( 2 )
578578 } )
579579
580580 it ( 'Should match JSXIdentifier when looking for Identifier wildcard' , ( ) => {
@@ -600,8 +600,8 @@ describe('JSX', () => {
600600 ] ,
601601 } )
602602
603- expect ( matches . length ) . toBe ( 2 )
604603 expect ( errors . length ) . toBe ( 0 )
604+ expect ( matches . length ) . toBe ( 2 )
605605 } )
606606 } )
607607
@@ -628,7 +628,7 @@ describe('JSX', () => {
628628 ] ,
629629 } )
630630
631- expect ( matches . length ) . toBe ( 0 )
632631 expect ( errors . length ) . toBe ( 0 )
632+ expect ( matches . length ) . toBe ( 0 )
633633 } )
634634} )
0 commit comments