Update json.test.js

This commit is contained in:
Jon authored and GitHub committed 2024-11-17 16:00:24 -05:00
1 parent 064fc66221
commit f3b6d4d1e7
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ t("All files should have valid file names", (t) => {
t("All files should have the required fields", (t) => {
const files = fs.readdirSync(domainsPath).filter(file => {
const filePath = path.join(domainsPath, file);
return fs.lstatSync(filePath).isFile(); // Only include files
return fs.lstatSync(filePath).isFile(); // Ensure only files are included
});
files.forEach((file) => {
const data = fs.readJsonSync(path.join(domainsPath, file));