mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-13 18:15:40 +00:00
Merge branch 'main' into main
This commit is contained in:
2 files changed
+14
-3
No files matched your search
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"owner": {
|
||||
"username": "Rvtea"
|
||||
},
|
||||
"records": {
|
||||
"CNAME": "rvtea.github.io"
|
||||
}
|
||||
}
|
||||
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user