mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-22 00:08:19 +00:00
init
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user