diff --git a/backend/src/graphql/resolver/util/creations.test.ts b/backend/src/graphql/resolver/util/creations.test.ts index e9c1997f6..d9ccf6936 100644 --- a/backend/src/graphql/resolver/util/creations.test.ts +++ b/backend/src/graphql/resolver/util/creations.test.ts @@ -183,8 +183,8 @@ describe('util/creation', () => { }) it('has the clock set correctly', () => { - const targetMonth = targetDate.getMonth() + 1 - const targetMonthString = (targetMonth < 10 ? '0' : '') + String(targetMonth) + const targetMonthString = + (targetDate.getMonth() + 1 < 10 ? '0' : '') + String(targetDate.getMonth() + 1) expect(new Date().toISOString()).toContain( `${targetDate.getFullYear()}-${targetMonthString}-${targetDate.getDate()}T23:`, ) diff --git a/frontend/src/components/ContentFooter.spec.js b/frontend/src/components/ContentFooter.spec.js index 175ef347b..29d13bc28 100644 --- a/frontend/src/components/ContentFooter.spec.js +++ b/frontend/src/components/ContentFooter.spec.js @@ -32,8 +32,8 @@ describe('ContentFooter', () => { expect(wrapper.find('div.copyright').exists()).toBeTruthy() }) - it('renders the copyright year', () => { - expect(mocks.$t).toBeCalledWith('footer.copyright.year', { year: 2023 }) + it('renders the current year as copyright year', () => { + expect(mocks.$t).toBeCalledWith('footer.copyright.year', { year: new Date().getFullYear() }) }) it('renders a link to Gradido-Akademie', () => {