mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 20:11:08 +00:00
* fix: keep non-hibernated tabs active in background * fix: scope background work to hibernation policy * fix: bind background monitoring to its tab * fix: measure hidden local workspaces
20 lines
667 B
TypeScript
20 lines
667 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/,
|
|
);
|
|
});
|
|
|
|
test("server stats stay subscribed while the terminal is in the background", () => {
|
|
const source = readFileSync(new URL("./TerminalServerStats.tsx", import.meta.url), "utf8");
|
|
|
|
assert.doesNotMatch(source, /usePaneVisible/);
|
|
assert.doesNotMatch(source, /isVisible,/);
|
|
});
|