Files
TJWaterFrontend_Refine/src/components/olmap/FlushingAnalysis/analysisParametersLayout.test.ts
T
jiang 6d505ca461
Generic Container CI/CD / test-build-publish (push) Successful in 1m1s
Frontend CI/CD v2 / build-test-publish-and-deploy (push) Successful in 1m1s
fix(flushing): 收紧空阀门区域高度
2026-08-17 19:44:11 +08:00

14 lines
422 B
TypeScript

import { getValveListClassName } from "./analysisParametersLayout";
describe("getValveListClassName", () => {
it("uses compact height when no valves are selected", () => {
expect(getValveListClassName(0)).toBe("min-h-16 overflow-auto");
});
it("restores the fixed scroll region when valves are selected", () => {
expect(getValveListClassName(1)).toBe(
"max-h-50 h-48 overflow-auto",
);
});
});