Files
OmniRoute/tests/unit/dashboard-ux-operability.test.ts
Rouzbeh† b25b2eacb3 refactor(dashboard): format custom provider quota keys into title-cased labels (#11188)
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!
2026-08-23 01:01:11 -03:00

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