@@ -1573,9 +1573,7 @@ test.each([true, false])(
15731573
15741574 fireEvent . click ( postsButton )
15751575
1576- expect (
1577- await screen . findByTestId ( 'posts-index-heading' ) ,
1578- ) . toBeInTheDocument ( )
1576+ expect ( await screen . findByTestId ( 'posts-index-heading' ) ) . toBeInTheDocument ( )
15791577 expect ( window . location . pathname ) . toEqual ( `/posts${ tail } ` )
15801578
15811579 const firstPostButton = await screen . findByTestId ( 'first-post-btn' )
@@ -1741,9 +1739,7 @@ test.each([true, false])(
17411739
17421740 fireEvent . click ( postsButton )
17431741
1744- expect (
1745- await screen . findByTestId ( 'posts-index-heading' ) ,
1746- ) . toBeInTheDocument ( )
1742+ expect ( await screen . findByTestId ( 'posts-index-heading' ) ) . toBeInTheDocument ( )
17471743
17481744 const post1Button = await screen . findByTestId ( 'first-post-btn' )
17491745
@@ -1873,7 +1869,7 @@ test.each([true, false])(
18731869
18741870 expect ( router . state . location . pathname ) . toBe ( `/` )
18751871 expect ( router . state . location . search ) . toEqual ( { } )
1876- }
1872+ } ,
18771873)
18781874
18791875test . each ( [ true , false ] ) (
@@ -2058,9 +2054,7 @@ test.each([true, false])(
20582054
20592055 fireEvent . click ( postsButton )
20602056
2061- expect (
2062- await screen . findByTestId ( 'posts-index-heading' ) ,
2063- ) . toBeInTheDocument ( )
2057+ expect ( await screen . findByTestId ( 'posts-index-heading' ) ) . toBeInTheDocument ( )
20642058 expect ( window . location . pathname ) . toEqual ( `/posts${ tail } ` )
20652059
20662060 const firstPostButton = await screen . findByTestId ( 'first-post-btn' )
@@ -2095,18 +2089,14 @@ test.each([true, false])(
20952089
20962090 fireEvent . click ( postNotesButton )
20972091
2098- expect (
2099- await screen . findByTestId ( 'post-notes-heading' ) ,
2100- ) . toBeInTheDocument ( )
2092+ expect ( await screen . findByTestId ( 'post-notes-heading' ) ) . toBeInTheDocument ( )
21012093 expect ( window . location . pathname ) . toEqual ( `/posts/1/notes${ tail } ` )
21022094
21032095 const toPostsIndexButton = await screen . findByTestId ( 'to-posts-index-btn' )
21042096
21052097 fireEvent . click ( toPostsIndexButton )
21062098
2107- expect (
2108- await screen . findByTestId ( 'posts-index-heading' ) ,
2109- ) . toBeInTheDocument ( )
2099+ expect ( await screen . findByTestId ( 'posts-index-heading' ) ) . toBeInTheDocument ( )
21102100 expect ( screen . queryByTestId ( 'post-notes-heading' ) ) . not . toBeInTheDocument ( )
21112101 expect (
21122102 screen . queryByTestId ( 'post-detail-index-heading' ) ,
@@ -2357,9 +2347,7 @@ describe.each([{ basepath: '' }, { basepath: '/basepath' }])(
23572347 Link to .. from /param/foo/a
23582348 </ button >
23592349 < button
2360- onClick = { ( ) =>
2361- navigate ( { to : '..' } )
2362- }
2350+ onClick = { ( ) => navigate ( { to : '..' } ) }
23632351 data-testid = { 'link-to-previous' }
23642352 >
23652353 Link to .. from current active route
@@ -2533,7 +2521,6 @@ describe.each([{ basepath: '' }, { basepath: '/basepath' }])(
25332521 expect ( window . location . pathname ) . toBe ( `${ basepath } /param/foo/a` )
25342522 } )
25352523
2536-
25372524 test ( 'should navigate to same route with different params' , async ( ) => {
25382525 const router = setupRouter ( )
25392526
0 commit comments