Files
Netcatty/components/terminal/TerminalServerStats.test.ts
T
2026-07-01 17:20:18 +08:00

13 lines
388 B
TypeScript

import test from "node:test";
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
test("CPU per-core stats list can scroll when many cores are reported", () => {
const source = readFileSync(new URL("./TerminalServerStats.tsx", import.meta.url), "utf8");
assert.match(
source,
/className="grid gap-1\.5 max-h-\[\d+px\] overflow-y-auto/,
);
});