diff --git a/domains/kanxu.json b/domains/kanxu.json new file mode 100644 index 0000000000..3bacf1a4e1 --- /dev/null +++ b/domains/kanxu.json @@ -0,0 +1,8 @@ +{ + "owner": { + "username": "Rvtea" + }, + "records": { + "CNAME": "rvtea.github.io" + } +} \ No newline at end of file diff --git a/tests/records.test.js b/tests/records.test.js index 38ad3d69b1..5d87f0b479 100644 --- a/tests/records.test.js +++ b/tests/records.test.js @@ -288,9 +288,12 @@ t("All files should have valid records", (t) => { }); // Record type combinations validation - if (recordKeys.includes("CNAME") && !data.proxied) { - t.is(recordKeys.length, 1, `${file}: CNAME records cannot be combined with other records unless proxied`); - t.true(!recordKeys.includes("A") && !recordKeys.includes("AAAA"), `${file}: CNAME records cannot be combined with A or AAAA records`); + if (recordKeys.includes("CNAME")) { + if (!data.proxied) { + t.is(recordKeys.length, 1, `${file}: CNAME records cannot be combined with other records unless proxied`); + } else { + t.true(!recordKeys.includes("A") && !recordKeys.includes("AAAA"), `${file}: CNAME records cannot be combined with A or AAAA records`); + } } if (recordKeys.includes("NS")) { t.true(