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