Files
OpenFrontIO/tests/core/ApiSchemas.test.ts
T
Ryan Barlow e9f3d9ebd5 init
2026-05-29 00:15:30 +01:00

10 lines
352 B
TypeScript

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");
});
});