Update domains.test.js

This commit is contained in:
William Harrison
2025-04-04 12:02:40 +08:00
committed by GitHub
parent 49d0406b2c
commit 60eeacbc2f
+2 -4
View File
@@ -43,9 +43,10 @@ t("Nested subdomains should not exist if any parent subdomain has NS records", (
for (let i = 1; i < parts.length; i++) {
const parent = parts.slice(i).join(".");
if (parent.startsWith("_")) continue;
const parentData = getDomainData(parent);
if (!parentData) continue;
if (parentData.record.NS) {
t.fail(`${file}: Parent subdomain "${parent}" has NS records`);
return;
@@ -61,9 +62,6 @@ t("Nested subdomains should be owned by the parent subdomain's owner", (t) => {
if (parentDomain !== subdomain) {
const data = getDomainData(subdomain);
if (parent.startsWith("_")) continue;
const parentData = getDomainData(parentDomain);
t.true(