mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-18 14:13:42 +00:00
Update domains.test.js
This commit is contained in:
1 parent
86eedfd4ac
commit
710a476a52
1 file changed
+1
-4
@@ -48,10 +48,7 @@ t("Nested subdomains should not exist if any parent subdomain has NS records", (
|
|||||||
if (parent.startsWith("_") || !files.includes(`${parent}.json`)) continue;
|
if (parent.startsWith("_") || !files.includes(`${parent}.json`)) continue;
|
||||||
const parentData = getDomainData(parent);
|
const parentData = getDomainData(parent);
|
||||||
|
|
||||||
if (parentData.record.NS) {
|
t.false(parentData.record.NS, `${file}: Parent subdomain "${parent}" has NS records`);
|
||||||
t.fail(`${file}: Parent subdomain "${parent}" has NS records`);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user