This commit is contained in:
Ryan Barlow
2026-05-29 00:15:30 +01:00
parent b043dc6c15
commit e9f3d9ebd5
11 changed files with 529 additions and 45 deletions
+9
View File
@@ -0,0 +1,9 @@
import { describe, expect, it } from "vitest";
import { clanExistsApiPath } from "../../src/core/ApiSchemas";
describe("clanExistsApiPath", () => {
it("uppercases and URL-encodes the tag", () => {
expect(clanExistsApiPath("abc")).toBe("/public/clan/ABC/exists");
expect(clanExistsApiPath("a/b")).toBe("/public/clan/A%2FB/exists");
});
});