From 90f532370f81e23d55b4b044044d6038d8dba9e3 Mon Sep 17 00:00:00 2001 From: William Harrison <87287585+wdhdev@users.noreply.github.com> Date: Tue, 13 May 2025 17:39:01 +0800 Subject: [PATCH] ns records cannot be combined with service records --- tests/records.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/records.test.js b/tests/records.test.js index 3710c64ee6..7bc851397d 100644 --- a/tests/records.test.js +++ b/tests/records.test.js @@ -286,6 +286,7 @@ t("All files should have valid records", (t) => { recordKeys.length === 1 || (recordKeys.length === 2 && recordKeys.includes("DS")), `${file}: NS records cannot be combined with other records, except for DS records` ); + t.true(!data.services, `${file}: Service records cannot be present when NS records are defined`); } if (recordKeys.includes("DS")) { t.true(recordKeys.includes("NS"), `${file}: DS records must be combined with NS records`);