mirror of
https://github.com/tiennm99/is-a-dev.git
synced 2026-10-03 11:12:30 +00:00
move test
This commit is contained in:
1 parent
acd63b2062
commit
64e598111c
2 files changed
+1
-12
No files matched your search
@@ -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'`
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user