import assert from "node:assert/strict";
import test from "node:test";
import { isMapLiveDataSlot } from "./map-live-data-slot.mjs";

test("point and zone streams are approved Map live-data slots", () => {
  assert.equal(isMapLiveDataSlot({ id: "points", kind: "entity-stream" }), true);
  assert.equal(isMapLiveDataSlot({ id: "zones", kind: "zone-stream" }), true);
});

test("non-entity Map slots cannot receive a data-product binding", () => {
  for (const kind of ["trace-stream", "route-stream", "selection", "command", "assistant", undefined]) {
    assert.equal(isMapLiveDataSlot(kind ? { id: "other", kind } : null), false);
  }
});

