diff --git a/src/routes/home/components/HomeFooter.tsx b/src/routes/home/components/HomeFooter.tsx index b79c6151..e2249a42 100644 --- a/src/routes/home/components/HomeFooter.tsx +++ b/src/routes/home/components/HomeFooter.tsx @@ -15,7 +15,9 @@ const Container = styled.View` const HomeFooter = (): ReactElement => ( - {'\u00A9'}LUNES2023 + + {'\u00A9'}LUNES{new Date().getFullYear()} + ) diff --git a/src/routes/home/components/__tests__/HomeFooter.spec.tsx b/src/routes/home/components/__tests__/HomeFooter.spec.tsx index b6e7b7cf..b9cb485d 100644 --- a/src/routes/home/components/__tests__/HomeFooter.spec.tsx +++ b/src/routes/home/components/__tests__/HomeFooter.spec.tsx @@ -4,6 +4,8 @@ import render from '../../../../testing/render' import HomeFooter from '../HomeFooter' describe('HomeFooter', () => { + jest.useFakeTimers().setSystemTime(new Date('2023-05-05')) + it('should render the HomeFooter', () => { const { getByText } = render()