From 06230b97db9ddd65c182a26677250fa506f685af Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Mon, 16 Oct 2023 16:48:05 +0200 Subject: [PATCH] OZG-3934 remove const and use string directly --- .../apps/goofy-e2e/src/support/pre-ea-report-merge.ts | 6 ++---- goofy-client/apps/goofy-e2e/src/support/pre-merge.ts | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/goofy-client/apps/goofy-e2e/src/support/pre-ea-report-merge.ts b/goofy-client/apps/goofy-e2e/src/support/pre-ea-report-merge.ts index 46a09f4f35..08d5f533e0 100644 --- a/goofy-client/apps/goofy-e2e/src/support/pre-ea-report-merge.ts +++ b/goofy-client/apps/goofy-e2e/src/support/pre-ea-report-merge.ts @@ -23,8 +23,6 @@ */ const fs = require('fs'); -const EINHEITLICHER_ANSPRECHPARTNER_REPORT_FOLDER: string = 'apps/goofy-e2e/reports_einheitlicher-ansprechpartner/mochawesome-report'; - -if (fs.existsSync(`${EINHEITLICHER_ANSPRECHPARTNER_REPORT_FOLDER}/.jsons`)) { - fs.rename(`${EINHEITLICHER_ANSPRECHPARTNER_REPORT_FOLDER}/.jsons`, `${EINHEITLICHER_ANSPRECHPARTNER_REPORT_FOLDER}/jsons`, () => { }) +if (fs.existsSync(`apps/goofy-e2e/reports_einheitlicher-ansprechpartner/mochawesome-report/.jsons`)) { + fs.rename(`apps/goofy-e2e/reports_einheitlicher-ansprechpartner/mochawesome-report/.jsons`, `apps/goofy-e2e/reports_einheitlicher-ansprechpartner/mochawesome-report/jsons`, () => { }) } \ No newline at end of file diff --git a/goofy-client/apps/goofy-e2e/src/support/pre-merge.ts b/goofy-client/apps/goofy-e2e/src/support/pre-merge.ts index f24bc0c8f7..6ea856303c 100644 --- a/goofy-client/apps/goofy-e2e/src/support/pre-merge.ts +++ b/goofy-client/apps/goofy-e2e/src/support/pre-merge.ts @@ -23,8 +23,6 @@ */ const fs = require('fs'); -const MAIN_TEST_REPORT_FOLDER: string = `apps/goofy-e2e/reports/${process.env.REPORT_FOLDER}/mochawesome-report`; - -if (fs.existsSync(`${MAIN_TEST_REPORT_FOLDER}/.jsons`)) { - fs.rename(`${MAIN_TEST_REPORT_FOLDER}/.jsons`, `${MAIN_TEST_REPORT_FOLDER}/jsons`, () => { }) +if (fs.existsSync(`apps/goofy-e2e/reports/${process.env.REPORT_FOLDER}/mochawesome-report/.jsons`)) { + fs.rename(`apps/goofy-e2e/reports/${process.env.REPORT_FOLDER}/mochawesome-report/.jsons`, `apps/goofy-e2e/reports/${process.env.REPORT_FOLDER}/mochawesome-report/jsons`, () => { }) } \ No newline at end of file -- GitLab