move test

This commit is contained in:
Roman authored and GitHub committed 2026-09-01 02:26:27 +01:00
1 parent acd63b2062
commit 64e598111c
2 files changed
+1 -12

No files matched your search

-12
View File
@@ -102,15 +102,3 @@ t("Users are limited to one single character subdomain", (t) => {
t.pass();
});
t("Subdomain names should not contain 'is-a-dev'", (t) => {
files.forEach((file) => {
const subdomain = file.replace(/\.json$/, "");
const baseName = subdomain.split(".").pop();
t.false(
baseName.toLowerCase().includes("is-a-dev"),
`${file}: Subdomain name cannot contain 'is-a-dev'`
);
});
});
+1
View File
@@ -116,6 +116,7 @@ async function validateFileName(t, file) {
const rootSubdomain = subdomain.split(".").pop();
t.false(rootSubdomain.startsWith("_"), `${file}: Root subdomains should not start with an underscore`);
t.false(rootSubdomain.includes("is-a-dev"), `${file}: Root subdomains should not contain is-a-dev`);
}
async function processFile(file, t) {