@@ -22,16 +22,18 @@ const mockBackfills: BackfillInfo[] = [
2222 } ,
2323] ;
2424
25- jest . mock ( 'next/link' , ( ) =>
26- function MockLink ( {
27- href,
28- children,
29- } : {
30- href : string ;
31- children : React . ReactNode ;
32- } ) {
33- return < a href = { href } > { children } </ a > ;
34- }
25+ jest . mock (
26+ 'next/link' ,
27+ ( ) =>
28+ function MockLink ( {
29+ href,
30+ children,
31+ } : {
32+ href : string ;
33+ children : React . ReactNode ;
34+ } ) {
35+ return < a href = { href } > { children } </ a > ;
36+ }
3537) ;
3638
3739describe ( ScheduleDetailsBackfillsTable . name , ( ) => {
@@ -71,21 +73,23 @@ describe(ScheduleDetailsBackfillsTable.name, () => {
7173
7274 it ( 'renders nothing when no backfills' , ( ) => {
7375 setup ( { backfills : [ ] } ) ;
74- expect (
75- screen . queryByText ( / o n g o i n g b a c k f i l l s / i)
76- ) . not . toBeInTheDocument ( ) ;
76+ expect ( screen . queryByText ( / o n g o i n g b a c k f i l l s / i) ) . not . toBeInTheDocument ( ) ;
7777 expect ( screen . queryByText ( 'Backfill ID' ) ) . not . toBeInTheDocument ( ) ;
7878 } ) ;
7979
8080 it ( 'collapses content when toggle button is clicked' , async ( ) => {
8181 const { user } = setup ( { } ) ;
82- expect ( screen . getByRole ( 'link' , { name : 'backfill-abc-123' } ) ) . toBeInTheDocument ( ) ;
82+ expect (
83+ screen . getByRole ( 'link' , { name : 'backfill-abc-123' } )
84+ ) . toBeInTheDocument ( ) ;
8385
8486 await user . click (
8587 screen . getByRole ( 'button' , { name : / c o l l a p s e o n g o i n g b a c k f i l l s / i } )
8688 ) ;
8789
88- expect ( screen . queryByRole ( 'link' , { name : 'backfill-abc-123' } ) ) . not . toBeInTheDocument ( ) ;
90+ expect (
91+ screen . queryByRole ( 'link' , { name : 'backfill-abc-123' } )
92+ ) . not . toBeInTheDocument ( ) ;
8993 } ) ;
9094
9195 it ( 'expands content again after collapsing' , async ( ) => {
@@ -98,7 +102,9 @@ describe(ScheduleDetailsBackfillsTable.name, () => {
98102 screen . getByRole ( 'button' , { name : / e x p a n d o n g o i n g b a c k f i l l s / i } )
99103 ) ;
100104
101- expect ( screen . getByRole ( 'link' , { name : 'backfill-abc-123' } ) ) . toBeInTheDocument ( ) ;
105+ expect (
106+ screen . getByRole ( 'link' , { name : 'backfill-abc-123' } )
107+ ) . toBeInTheDocument ( ) ;
102108 } ) ;
103109} ) ;
104110
0 commit comments