From ca946cb5d22c2341840dbc6033f8aa25d57d6bd3 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Thu, 6 Mar 2025 20:18:36 +0800 Subject: [PATCH] Update json.test.js --- tests/json.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/json.test.js b/tests/json.test.js index 893cabfe7..c18ffe1d3 100644 --- a/tests/json.test.js +++ b/tests/json.test.js @@ -119,7 +119,7 @@ async function validateFileName(t, file) { } } -async function processFile(file) { +async function processFile(file, t) { const filePath = path.join(domainsPath, file); const data = await fs.readJson(filePath); @@ -171,7 +171,7 @@ t("All files should have valid file names", async (t) => { }); t("All files should have valid required and optional fields", async (t) => { - await Promise.all(files.map((file) => processFile(file))); + await Promise.all(files.map((file) => processFile(file, t))); }); t("Reserved domains file should be valid", (t) => {