From 0c98156f43f0f53c1e8d77e29a3d775c7cd62dbb Mon Sep 17 00:00:00 2001 From: Mathieu Suen Date: Mon, 3 Jan 2022 11:35:33 +0100 Subject: [PATCH] [NO-JIRA] Fix UT test for UpgradeNotification --- .../update-notification/__tests__/UpdateNotification-test.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/app/components/update-notification/__tests__/UpdateNotification-test.tsx b/server/sonar-web/src/main/js/app/components/update-notification/__tests__/UpdateNotification-test.tsx index b99a923dd6b..fc5f347964d 100644 --- a/server/sonar-web/src/main/js/app/components/update-notification/__tests__/UpdateNotification-test.tsx +++ b/server/sonar-web/src/main/js/app/components/update-notification/__tests__/UpdateNotification-test.tsx @@ -38,7 +38,7 @@ jest.mock('../../../../api/system', () => { }); function formatDate(date: Date): string { - return `${date.getFullYear()}-${date.getMonth()}-${date.getDay()}`; + return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()}`; } it('should render correctly', async () => { -- 2.39.5