Update json.test.js

This commit is contained in:
Jon authored and GitHub committed 2024-11-17 12:46:28 -05:00
1 parent a6ef68d80e
commit 027869b5a1
1 file changed
+1 -2
+1 -2
View File
@@ -72,7 +72,7 @@ t("All files should have the required fields", (t) => {
const data = fs.readJsonSync(path.join(domainsPath, file));
validateRequiredFields(t, data, requiredFields, file);
validateRequiredFields(t, data.owner, requiredOwnerFields, file);
validateRequiredFields(t, data.owner, requiredFields, file);
if (!data.reserved) {
t.true(Object.keys(data.records).length > 0, `${file}: No record types found`);
@@ -85,7 +85,6 @@ t("All files should have valid optional fields", (t) => {
const data = fs.readJsonSync(path.join(domainsPath, file));
validateOptionalFields(t, data, optionalFields, file);
validateOptionalFields(t, data.owner, optionalOwnerFields, file);
if (data.owner.email) {
t.regex(data.owner.email, emailRegex, `${file}: Owner email should be a valid email address`);