Files
OmniRoute/tests/unit/free-note-freshness.test.ts
Diego Rodrigues de Sa e Souza 30ebe0ae2e feat(free-tiers): per-model free-token budget + Monthly Budget dashboard card (#3263)
Free-token budget catalog + per-model budget + Monthly Budget dashboard card (joins #3257 + #3263 into one).

Integrated into release/v3.8.12.
2026-06-06 02:38:35 -03:00

20 lines
700 B
TypeScript

import test from "node:test";
import assert from "node:assert/strict";
import { getProviderById } from "../../src/shared/constants/providers.ts";
const note = (id: string): string => getProviderById(id)?.freeNote ?? "";
test("kiro freeNote reflects the current 50-credit/month reality + ToS warning", () => {
const n = note("kiro");
assert.match(n, /50 credits\/month/i);
assert.match(n, /ToS|proxy/i);
});
test("longcat freeNote reflects the post-2026-05-29 5M tokens/day reality", () => {
assert.match(note("longcat"), /5M tokens\/day|LongCat-2\.0/i);
});
test("cerebras freeNote reflects the tightened 30K TPM", () => {
assert.match(note("cerebras"), /30K TPM|1M tokens\/day/i);
});