diff --git a/tests/domains.test.js b/tests/domains.test.js index 6ffeddf447..d0a778bbc4 100644 --- a/tests/domains.test.js +++ b/tests/domains.test.js @@ -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'` - ); - }); -}); diff --git a/tests/json.test.js b/tests/json.test.js index e3d79e801e..b59fd342a8 100644 --- a/tests/json.test.js +++ b/tests/json.test.js @@ -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) {