diff --git a/src/utils/dateTime.test.ts b/src/utils/dateTime.test.ts index 770bbbe66..ad737e96e 100644 --- a/src/utils/dateTime.test.ts +++ b/src/utils/dateTime.test.ts @@ -37,7 +37,8 @@ test('returns lastDayOfQuarter for en locale', () => { }); test('returns available years for passed number', () => { - expect(getAvailableYears(6)).toStrictEqual([2023, 2024, 2025, 2026, 2027, 2028]); + const currentYear = new Date().getFullYear(); + expect(getAvailableYears(6)).toStrictEqual(Array.from({ length: 6 }).map((_, index) => currentYear + index)); }); describe('increment year if the date has passed', () => { diff --git a/src/utils/worker/mail/templates.ts b/src/utils/worker/mail/templates.ts index c752d37ce..8c6bf6891 100644 --- a/src/utils/worker/mail/templates.ts +++ b/src/utils/worker/mail/templates.ts @@ -19,7 +19,7 @@ const notice = "_NB: you got this email because you're the owner/issuer/partici const footer = ` ____ -© 2023 Taskany inc. +© ${new Date().getFullYear()} Taskany inc. `; interface GoalCommentedEmailProps {