Merge pull request #51522 from is-a-dev/roman/vercel-txt-record-test

tests: improve vercel verification tests further
This commit is contained in:
William Harrison authored and GitHub committed 2026-09-09 11:41:30 +08:00
commit 0b18ff47d6
1 file changed
+5
+5
View File
@@ -310,6 +310,11 @@ t("All files should have valid records", (t) => {
`${file}: Files starting with '_vercel' must have format '_vercel.<name>.json'`
);
t.true(
recordKeys.includes("TXT") && recordKeys.length === 1,
`${file}: Files starting with '_vercel' can only have TXT records`
);
const txtRecords = data.records.TXT;
const txtList = Array.isArray(txtRecords) ? txtRecords : [txtRecords];