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]]);
  });
});
