14 lines
422 B
TypeScript
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",
|
|
);
|
|
});
|
|
});
|