mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 07:50:45 +00:00
10 lines
352 B
TypeScript
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");
|
|
});
|
|
});
|