Update json.test.js

This commit is contained in:
William Harrison authored and GitHub committed 2025-02-13 17:01:57 +08:00
1 parent 5f33042749
commit e115e1f30e
1 file changed
+1
+1
View File
@@ -165,6 +165,7 @@ t("All files should have valid required and optional fields", (t) => {
// Validate email format
if (data.owner.email) {
t.regex(data.owner.email, emailRegex, `${file}: Owner email should be a valid email address`);
t.true(!data.owner.email.endsWith("@users.noreply.github.com"), `${file}: Owner email should not be a GitHub no-reply email`);
}
// Ensure 'record' field is not empty