From 5107f756e17e57f09b0038579835f70ed4fa681a Mon Sep 17 00:00:00 2001 From: matthieu42morin Date: Sun, 31 Mar 2024 05:36:31 +0200 Subject: [PATCH] update Validation to fit current structure --- tests/ValidateServices.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ValidateServices.js b/tests/ValidateServices.js index 9c70040..b047c08 100644 --- a/tests/ValidateServices.js +++ b/tests/ValidateServices.js @@ -2,7 +2,7 @@ import Ajv from 'ajv'; import fs from 'fs'; import path from 'path'; -const serviceSchema = JSON.parse(fs.readFileSync('./src/routes/sluzby/schema.json', 'utf-8')); +const serviceSchema = JSON.parse(fs.readFileSync('./src/content/schema-categories.json', 'utf-8')); function validateFile(filePath) { @@ -30,7 +30,7 @@ function scanDirectory(directory) { export function validateServices() { try { - scanDirectory('./src/content/services'); + scanDirectory('./src/content/'); console.log('All services validated successfully!'); } catch (error) { console.error(`Error validating services: ${error}`);