mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-14 10:18:58 +00:00
Update json.test.js
This commit is contained in:
1 file changed
+4
@@ -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));
|
||||
|
||||
|
||||
Reference in new issue
Block a user