mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-05 18:14:34 +00:00
Update records.test.js
This commit is contained in:
1 parent
968e04a73f
commit
339698e7fe
1 file changed
+3
-8
@@ -305,14 +305,9 @@ t("All files should have valid records", (t) => {
|
||||
`${file}: Files starting with '_vercel' must have format '_vercel.<name>.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;
|
||||
|
||||
Reference in new issue
Block a user