mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-24 16:12:23 +03:00
Validated on the combined batch board + this branch: dashboard-ux-operability green. Unmapped custom quota keys now render as title-cased labels instead of raw snake_case. Conflict with the tip was only stale provider-count docs. Thank you @rqzbeh!
10 lines
466 B
TypeScript
10 lines
466 B
TypeScript
import assert from "node:assert/strict";
|
|
import { test } from "node:test";
|
|
import { formatQuotaLabel } from "../../src/app/(dashboard)/dashboard/usage/components/ProviderLimits/utils.tsx";
|
|
|
|
test("formatQuotaLabel formats custom quota keys with proper title-casing", () => {
|
|
assert.equal(formatQuotaLabel("session"), "Session");
|
|
assert.equal(formatQuotaLabel("weekly"), "Weekly");
|
|
assert.equal(formatQuotaLabel("custom_quota_limit"), "Custom Quota Limit");
|
|
});
|