mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 21:02:12 +03:00
Remove the Petals executor from registration and exports. Improve type safety by replacing broad any usage in MCP tool registration with inferred types and documenting dynamic handler type limitations. Add request validation for the agent bridge cert route and expand tests to ensure switch buttons explicitly declare type="button", preventing implicit form submissions.
18 lines
775 B
TypeScript
18 lines
775 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { readFileSync } from "node:fs";
|
|
import { join } from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
|
|
test("pool list uses a responsive multi-column grid", () => {
|
|
const p = join(fileURLToPath(import.meta.url), "..", "..", "..",
|
|
"src/app/(dashboard)/dashboard/costs/quota-share/QuotaSharePageClient.tsx");
|
|
const src = readFileSync(p, "utf8");
|
|
// Pool cards render in a responsive grid that scales 1 → 2 → 3 columns
|
|
// (feat 3c8e84d70: "3-col cards"). Keep this aligned with the component.
|
|
assert.ok(
|
|
/grid-cols-1\s+md:grid-cols-2\s+xl:grid-cols-3/.test(src),
|
|
"pool list must be a responsive multi-column grid (grid-cols-1 md:grid-cols-2 xl:grid-cols-3)"
|
|
);
|
|
});
|