File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,20 +112,20 @@ describe('Footer Component', () => {
112112 await act ( async ( ) => {
113113 render ( < Footer /> ) ;
114114 } ) ;
115- expect ( screen . getByText ( / © 2 0 2 5 b y C o n o r H e f f r o n / ) ) . toBeInTheDocument ( ) ;
115+ expect ( screen . getByText ( / © 2 0 2 6 b y C o n o r H e f f r o n / ) ) . toBeInTheDocument ( ) ;
116116 } ) ;
117117
118118 test ( 'initial state is set correctly' , ( ) => {
119119 global . fetch = jest . fn ( ( ) => new Promise ( ( ) => { } ) ) ;
120120 const { container } = render ( < Footer /> ) ;
121121 const footerText = container . querySelector ( '.ft' ) ;
122- expect ( footerText ) . toHaveTextContent ( '© 2025 by Conor Heffron |' ) ;
122+ expect ( footerText ) . toHaveTextContent ( '© 2026 by Conor Heffron |' ) ;
123123 } ) ;
124124
125125 test ( 'fetches and displays the version' , async ( ) => {
126126 render ( < Footer /> ) ;
127127 await waitFor ( ( ) => expect ( fetch ) . toHaveBeenCalledTimes ( 1 ) ) ;
128- await waitFor ( ( ) => expect ( screen . getByText ( '© 2025 by Conor Heffron |' ) ) . toBeInTheDocument ( ) ) ;
128+ await waitFor ( ( ) => expect ( screen . getByText ( '© 2026 by Conor Heffron |' ) ) . toBeInTheDocument ( ) ) ;
129129 await waitFor ( ( ) => expect ( screen . getByText ( '2.2.0' ) ) . toBeInTheDocument ( ) ) ;
130130 } ) ;
131131
@@ -136,7 +136,7 @@ describe('Footer Component', () => {
136136
137137 render ( < Footer /> ) ;
138138 await waitFor ( ( ) => expect ( fetch ) . toHaveBeenCalledTimes ( 1 ) ) ;
139- await waitFor ( ( ) => expect ( screen . getByText ( '© 2025 by Conor Heffron |' ) ) . toBeInTheDocument ( ) ) ;
139+ await waitFor ( ( ) => expect ( screen . getByText ( '© 2026 by Conor Heffron |' ) ) . toBeInTheDocument ( ) ) ;
140140 } ) ;
141141
142142 test ( 'handles non-ok fetch responses' , async ( ) => {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ class Footer extends Component {
3030 < div className = "App" >
3131 < Container >
3232 < footer > < p className = "ft" >
33- © 2025 by Conor Heffron | < a href = "https://github.com/conorheffron/ironoc"
33+ © 2026 by Conor Heffron | < a href = "https://github.com/conorheffron/ironoc"
3434 target = "_blank" rel = "noreferrer" > { version } </ a > </ p > </ footer >
3535 </ Container >
3636 </ div >
You can’t perform that action at this time.
0 commit comments