aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js
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:55 +0000
commit9d5a297577d2447b443f0a733eb32084adad6348 (patch)
tree352a40bc9a749e45288d9430faad163f3bcdcfcb /server/sonar-web/src/main/js
parent7afda49f73438fd1c027d2f558e8012e4d488915 (diff)
downloadsonarqube-9d5a297577d2447b443f0a733eb32084adad6348.tar.gz
sonarqube-9d5a297577d2447b443f0a733eb32084adad6348.zip
[NO-JIRA] Fix UT test for UpgradeNotification
Diffstat (limited to 'server/sonar-web/src/main/js')
-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 () => {