From 1b9ea978b33ca2b50bed991d690c04f1d14f8865 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Fri, 4 Apr 2025 14:28:51 +0800 Subject: [PATCH] chore(ci): allow subdomains starting with underscores to have non-usable records --- tests/records.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/records.test.js b/tests/records.test.js index 6926a88f2..573e0604e 100644 --- a/tests/records.test.js +++ b/tests/records.test.js @@ -318,7 +318,8 @@ t("Root subdomains should have at least one usable record", (t) => { const usableRecordTypes = ["A", "AAAA", "CNAME", "MX", "NS", "URL"]; files.forEach((file) => { - if (file.replace(/\.json$/, "").includes(".")) return; + const subdomain = file.replace(/\.json$/, ""); + if (subdomain.includes(".") || subdomain.startsWith("_")) return; const data = getDomainData(file); const recordKeys = Object.keys(data.record);