From b362c9ec270e207391889525cbf90b253f4d4f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me> Date: Fri, 11 Aug 2023 23:14:21 +0200 Subject: [PATCH] ExerciceHelper => Rename class with prefix "Shared" --- helpers/{ExerciceHelper.ts => Dojo/SharedExerciceHelper.ts} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename helpers/{ExerciceHelper.ts => Dojo/SharedExerciceHelper.ts} (93%) diff --git a/helpers/ExerciceHelper.ts b/helpers/Dojo/SharedExerciceHelper.ts similarity index 93% rename from helpers/ExerciceHelper.ts rename to helpers/Dojo/SharedExerciceHelper.ts index ec3a322..9fc4633 100644 --- a/helpers/ExerciceHelper.ts +++ b/helpers/Dojo/SharedExerciceHelper.ts @@ -1,10 +1,10 @@ import Ajv, { ErrorObject, JTDSchemaType } from 'ajv/dist/jtd'; import fs from 'fs'; -import ExerciceResultsFile from '../types/Dojo/ExerciceResultsFile'; +import ExerciceResultsFile from '../../types/Dojo/ExerciceResultsFile'; import JSON5 from 'json5'; -class ExerciceHelper { +class SharedExerciceHelper { validateResultFile(resultsFilePathOrStr: string, isFile: boolean = true): { results: ExerciceResultsFile | undefined, isValid: boolean, errors: Array<ErrorObject<string, Record<string, any>, unknown> | string> | null | undefined } { const ajv = new Ajv(); @@ -62,4 +62,4 @@ class ExerciceHelper { } -export default new ExerciceHelper(); \ No newline at end of file +export default new SharedExerciceHelper(); \ No newline at end of file -- GitLab