From f1777719d15f471688a616d6fd44c142144bb67a Mon Sep 17 00:00:00 2001 From: Jon <66625200+Kyro3400@users.noreply.github.com> Date: Sun, 17 Nov 2024 15:34:35 -0500 Subject: [PATCH] Update json.test.js --- tests/json.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/json.test.js b/tests/json.test.js index e21b74d0..1c6e2414 100644 --- a/tests/json.test.js +++ b/tests/json.test.js @@ -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`);