aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2022-01-03 11:35:33 +0100
committersonartech <sonartech@sonarsource.com>2022-01-03 20:02:53 +0000
commit0c98156f43f0f53c1e8d77e29a3d775c7cd62dbb (patch)
treeee8be47c71eebec399e6bfa19df0b35cfaa53c49
parentbbacf88fa60153a53fdca2a613abc0764f656ab0 (diff)
downloadsonarqube-branch-9.2.tar.gz
sonarqube-branch-9.2.zip
[NO-JIRA] Fix UT test for UpgradeNotificationbranch-9.2
-rw-r--r--server/sonar-web/src/main/js/app/components/update-notification/__tests__/UpdateNotification-test.tsx2
1 files changed, 1 insertions, 1 deletions
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 () => {