mirror of
https://github.com/tiennm99/open-domains.git
synced 2026-10-16 02:15:48 +00:00
Update json.test.js
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -52,7 +52,7 @@ t("All files should have valid file names", (t) => {
|
||||
t.true(file.endsWith(".json"), `${file}: File does not have .json extension`);
|
||||
|
||||
// Check for any unwanted domain in file names
|
||||
t.false(Domains.some(domain => file.includes(domain)), `${file}: File name should not contain any restricted domain extensions`);
|
||||
t.false(Domains.some(domain => file.endsWith(domain + ".json")), `${file}: File name should not contain restricted domain extensions`);
|
||||
|
||||
t.true(file === file.toLowerCase(), `${file}: File name should be lowercase`);
|
||||
|
||||
|
||||
Reference in new issue
Block a user