From 339698e7fea538d58b35688fc89a435e665ba726 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Wed, 9 Sep 2026 11:38:20 +0800 Subject: [PATCH] Update records.test.js --- tests/records.test.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/records.test.js b/tests/records.test.js index ab9bb71afa..a0e30ead2a 100644 --- a/tests/records.test.js +++ b/tests/records.test.js @@ -305,14 +305,9 @@ t("All files should have valid records", (t) => { `${file}: Files starting with '_vercel' must have format '_vercel..json'` ); - t.false( - recordKeys.includes("A"), - `${file}: Files starting with '_vercel' cannot have 'A' records` - ); - - t.false( - recordKeys.includes("CNAME"), - `${file}: Files starting with '_vercel' cannot have 'CNAME' records` + t.true( + recordKeys.includes("TXT") && recordKeys.length === 1, + `${file}: Files starting with '_vercel' can only have TXT records` ); const txtRecords = data.records.TXT;