mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-08-06 06:24:16 +00:00
Update json.test.js
This commit is contained in:
+1
-2
@@ -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$/, "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user