Update domains.test.js

This commit is contained in:
DIBSTER authored and GitHub committed 2024-12-05 18:40:39 -05:00
1 parent 75559bc848
commit 1ccad6b233
1 file changed
+2 -2
+2 -2
View File
@@ -25,7 +25,7 @@ t("Nested subdomains should not exist without a valid parent domain", (t) => {
// Skip first-level subdomains (e.g., "banana.is-cool.dev")
// First-level subdomains have no immediate parent to check
if (subdomain.split(".").length > 2) {
if (subdomain.split(".").length > 3) {
// Get the immediate parent domain (remove the first subdomain part)
const parentSubdomain = subdomain.split(".").slice(1).join(".");
@@ -52,7 +52,7 @@ t("Nested subdomains should not exist if the parent domain has NS records", (t)
// Skip first-level subdomains (e.g., "banana.is-cool.dev")
// First-level subdomains have no immediate parent to check
if (subdomain.split(".").length > 2) {
if (subdomain.split(".").length > 3) {
// Get the immediate parent domain (remove the first subdomain part)
const parentSubdomain = subdomain.split(".").slice(1).join(".");
const parentFilePath = path.join(domainsPath, `${parentSubdomain}.json`);