Update json.test.js

This commit is contained in:
Jon authored and GitHub committed 2024-11-17 13:27:00 -05:00
1 parent b01a9d746e
commit 982c7718df
1 file changed
+2 -2
+2 -2
View File
@@ -80,11 +80,11 @@ t("All files should have the required fields", (t) => {
});
});
t("All files should have valid optional fields", (t) => {
t("All files should have valid optional owner fields", (t) => {
files.forEach((file) => {
const data = fs.readJsonSync(path.join(domainsPath, file));
validateOptionalFields(t, data, optionalFields, file);
validateOptionalFields(t, data, optionalOwnerFields, file);
if (data.owner.email) {
t.regex(data.owner.email, emailRegex, `${file}: Owner email should be a valid email address`);