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