Update json.test.js

This commit is contained in:
William Harrison
2025-04-23 16:40:49 +08:00
parent 71822489b4
commit 85c4dd46cb
+1 -2
View File
@@ -6,7 +6,7 @@ const ignoredRootJSONFiles = ["package-lock.json", "package.json"];
const requiredFields = {
owner: "object",
record: "object"
records: "object"
};
const optionalFields = {
@@ -95,7 +95,6 @@ async function validateFileName(t, file) {
t.false(file.includes(".is-a.dev"), `${file}: File name should not contain .is-a.dev`);
t.true(file === file.toLowerCase(), `${file}: File name should be all lowercase`);
t.false(file.includes("--"), `${file}: File name should not contain consecutive hyphens`);
t.false(file.startsWith("_redirect."), `${file}: File name should not start with _redirect`);
const subdomain = file.replace(/\.json$/, "");