From 6af6a9cdebbef03fe6ac5b8205eae9665a241626 Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Wed, 21 Jul 2021 15:39:20 +0200 Subject: SONAR-15144 - Add Audit Logs Housekeeping Policy Setting --- .../js/apps/audit-logs/components/AuditAppRenderer.tsx | 2 +- .../__tests__/__snapshots__/AuditApp-test.tsx.snap | 2 +- .../__snapshots__/AuditAppRenderer-test.tsx.snap | 16 ++++++++-------- server/sonar-web/src/main/js/apps/audit-logs/utils.ts | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) (limited to 'server/sonar-web/src/main/js/apps/audit-logs') diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx b/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx index f4dbb7d1490..31a2a546614 100644 --- a/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx +++ b/server/sonar-web/src/main/js/apps/audit-logs/components/AuditAppRenderer.tsx @@ -85,7 +85,7 @@ export default function AuditAppRenderer(props: AuditAppRendererProps) { id="audit_logs.page.description.2" defaultMessage={translate('audit_logs.page.description.2')} values={{ - housekeeping: translate('audit_logs.houskeeping_policy', housekeepingPolicy), + housekeeping: translate('audit_logs.housekeeping_policy', housekeepingPolicy), link: ( {translate('audit_logs.page.description.link')} diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditApp-test.tsx.snap b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditApp-test.tsx.snap index 6958c37fd2a..7520c26fee4 100644 --- a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditApp-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditApp-test.tsx.snap @@ -6,7 +6,7 @@ exports[`should render correctly 1`] = ` handleDateSelection={[Function]} handleOptionSelection={[Function]} handleStartDownload={[Function]} - housekeepingPolicy="monthly" + housekeepingPolicy="Monthly" selection="today" /> `; diff --git a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap index 703fa50eae2..ca6ddeeace7 100644 --- a/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/audit-logs/components/__tests__/__snapshots__/AuditAppRenderer-test.tsx.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`should render correctly for monthly housekeeping policy 1`] = ` +exports[`should render correctly for Monthly housekeeping policy 1`] = `
`; -exports[`should render correctly for trimestrial housekeeping policy 1`] = ` +exports[`should render correctly for Trimestrial housekeeping policy 1`] = `
`; -exports[`should render correctly for weekly housekeeping policy 1`] = ` +exports[`should render correctly for Weekly housekeeping policy 1`] = `
`; -exports[`should render correctly for yearly housekeeping policy 1`] = ` +exports[`should render correctly for Yearly housekeeping policy 1`] = `