Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/apps/web/tests
diff options
context:
space:
mode:
authorLeitwolf112026-11-09 01:18:34 +0300
committerLeitwolf112026-11-09 01:18:34 +0300
commitc0bafe9050161ea6ca0c49f54897f908ca16ce84 (patch)
tree7496e782c0a82a9ff5ea9b59b85e3607fd7794d6 /apps/web/tests
parent66f3cc196a9b91d471a90e021b12630100181c4a (diff)
parent3ac256e69f10a3bb78d394c77d03a88a72261597 (diff)
downloadprogmaweb-security/cloudflare-real-ip.tar.gz
Merge remote-tracking branch 'origin/main' into security/cloudflare-real-ipsecurity/cloudflare-real-ip
Diffstat (limited to 'apps/web/tests')
-rw-r--r--apps/web/tests/sites.test.mjs9
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/web/tests/sites.test.mjs b/apps/web/tests/sites.test.mjs
index 7aa2b5a..c366c11 100644
--- a/apps/web/tests/sites.test.mjs
+++ b/apps/web/tests/sites.test.mjs
@@ -12,7 +12,7 @@ import {
productSlugs,
products,
} from "../lib/products.ts";
-import { catch3Route, idesRoute, productRoute } from "../lib/sites.ts";
+import { catch3Route, productRoute } from "../lib/sites.ts";
function shape(value) {
if (Array.isArray(value)) {
@@ -40,7 +40,7 @@ test("every language has the same home, catalog and product-site text", () => {
test("the catalog lists the products the user named, each with a site", () => {
assert.deepEqual(
[...productSlugs],
- ["tala-lang", "talac", "talafmt", "talalint", "tazel", "xide", "catch3"],
+ ["tala-lang", "talac", "talafmt", "talalint", "tazel", "catch3"],
);
for (const slug of productSlugs) {
assert.match(products[slug].site, /^https:\/\//, slug);
@@ -50,9 +50,9 @@ test("the catalog lists the products the user named, each with a site", () => {
slug,
);
}
- assert.equal(products.xide.site, "https://ides.progmasoft.com/xide");
assert.equal(products.catch3.site, "https://catch3.progmasoft.com/");
assert.equal(isProductSlug("viget"), false);
+ assert.equal(isProductSlug("xide"), false);
});
test("the home page names areas, not products", () => {
@@ -73,9 +73,6 @@ test("the product hosts map to their internal routes", () => {
assert.equal(productRoute("/tala-lang/"), "/products/tala-lang");
assert.equal(productRoute("/talac/extra"), null);
assert.equal(productRoute("/../x"), null);
- assert.equal(idesRoute("/"), "/ides");
- assert.equal(idesRoute("/xide"), "/ides/xide");
- assert.equal(idesRoute("/other"), null);
assert.equal(catch3Route("/"), "/catch3");
assert.equal(catch3Route("/docs"), null);
});