File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
frontend/src/__tests__/components/molecules Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ type FooterLinkSpec = {
77 href : string ;
88} ;
99
10- const expectedFooterLinks : Array < Array < string | FooterLinkSpec > > = [
10+ const expectedFooterLinks : Array < [ string , FooterLinkSpec ] > = [
1111 [
1212 'acceptable use policy' ,
1313 {
@@ -51,9 +51,7 @@ const expectedFooterLinks: Array<Array<string | FooterLinkSpec>> = [
5151] ;
5252
5353describe ( 'Footer component' , ( ) => {
54- test . each ( expectedFooterLinks ) ( 'Check %s footer link' , ( _ , spec ) => {
55- const linkSpec = spec as FooterLinkSpec ;
56-
54+ test . each ( expectedFooterLinks ) ( 'Check %s footer link' , ( _ , linkSpec ) => {
5755 render ( < NHSNotifyFooter /> ) ;
5856
5957 const link = screen . getByTestId ( linkSpec . testId ) ;
@@ -78,7 +76,7 @@ describe('Footer component', () => {
7876
7977 expect ( footerLinksOrdered ) . toEqual (
8078 expectedFooterLinks . map (
81- ( linkSpec ) => ( linkSpec [ 1 ] as FooterLinkSpec ) . testId
79+ ( linkSpec ) => ( linkSpec [ 1 ] ) . testId
8280 )
8381 ) ;
8482 expect (
You can’t perform that action at this time.
0 commit comments