diff --git a/tests/json.test.js b/tests/json.test.js index ff4284a3..f1bd162c 100644 --- a/tests/json.test.js +++ b/tests/json.test.js @@ -42,19 +42,6 @@ function validateOptionalFields(t, obj, optionalFields, file) { } t("All files should be valid JSON", (t) => { - const reservedFiles = fs.existsSync(reservedDomainsPath) - ? fs.readdirSync(reservedDomainsPath).filter(file => { - const filePath = path.join(reservedDomainsPath, file); - try { - // Ensure the file is not a directory or symbolic link - return fs.statSync(filePath).isFile(); - } catch (err) { - console.error(`Error reading reserved file: ${filePath}`, err); - return false; // Skip any errors - } - }) - : []; - files.forEach((file) => { t.notThrows(() => fs.readJsonSync(path.join(domainsPath, file)), `${file}: Invalid JSON file`); });