Unify the Agent history extension with the header acrylic surface, preserve the full conversation body, and consolidate shared control and status styling. Restore map flow and SCADA controller behavior, remove obsolete rendering paths, and extend regression coverage. Button press coverage now releases outside the target so state assertions cannot accidentally toggle the control.
15 lines
527 B
TypeScript
15 lines
527 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { getNumericFeatureProperties } from "./value-label";
|
|
|
|
describe("workbench value labels", () => {
|
|
const feature = {
|
|
type: "Feature" as const,
|
|
geometry: { type: "Point" as const, coordinates: [120, 28] },
|
|
properties: { diameter: 600.125, name: "P-1", invalid: Number.NaN, depth: 2 }
|
|
};
|
|
|
|
it("lists finite numeric properties only", () => {
|
|
expect(getNumericFeatureProperties(feature.properties)).toEqual([["depth", 2], ["diameter", 600.125]]);
|
|
});
|
|
});
|