From 0986e6d5d047cc8f4c84f69c80b5620767394889 Mon Sep 17 00:00:00 2001 From: Jon <66625200+Kyro3400@users.noreply.github.com> Date: Sun, 17 Nov 2024 15:55:48 -0500 Subject: [PATCH] Update json.test.js --- tests/json.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/json.test.js b/tests/json.test.js index 1c6e2414..1bb664aa 100644 --- a/tests/json.test.js +++ b/tests/json.test.js @@ -81,6 +81,10 @@ t("All files should have the required fields", (t) => { }); t("All files should have valid optional owner fields", (t) => { + const files = fs.readdirSync(domainsPath).filter(file => { + const filePath = path.join(domainsPath, file); + return fs.lstatSync(filePath).isFile(); // Only include files + }); files.forEach((file) => { const data = fs.readJsonSync(path.join(domainsPath, file));