mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-05 12:14:13 +00:00
tests: add test to disallow 'github-pages-challenge' in a TXT record
This commit is contained in:
1 parent
cf19d979ba
commit
924952a59b
1 file changed
+5
@@ -239,6 +239,11 @@ function validateRecordValues(t, data, file) {
|
||||
values.forEach((record, idx) => {
|
||||
t.true(typeof record === "string", `${file}: TXT record value should be a string at index ${idx}`);
|
||||
|
||||
t.false(
|
||||
record.includes("github-pages-challenge"),
|
||||
`${file}: TXT record cannot contain 'github-pages-challenge' at index ${idx}`
|
||||
);
|
||||
|
||||
if (record.startsWith("vc-domain-verify=")) {
|
||||
t.true(
|
||||
file.startsWith("_vercel."),
|
||||
|
||||
Reference in new issue
Block a user