From 6fd1d982ece5bd2d6dc462e229d0b0da30d9e825 Mon Sep 17 00:00:00 2001 From: LeandraH Date: Wed, 4 Dec 2024 18:23:49 +0100 Subject: [PATCH] Update copyright --- src/routes/home/components/HomeFooter.tsx | 4 +++- src/routes/home/components/__tests__/HomeFooter.spec.tsx | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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()