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 ec3a3227e92b0f6e034485df275c70d05cce7f9a..9fc46331eaad778208006f363d655bd732c9d7d7 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