feat: expand intelligent investigation workspace
This commit is contained in:
@@ -7,8 +7,19 @@ import {
|
||||
showFlowOverlay
|
||||
} from "./flow-overlay";
|
||||
import { WorkbenchMapController } from "./workbench-map-controller";
|
||||
import { PRESENTATION_FEATURE_SOURCE } from "./presentation-highlight-style";
|
||||
|
||||
describe("WorkbenchMapController", () => {
|
||||
it("tags presentation geometry with its verified source without changing manual state or cached features", async () => {
|
||||
const map = createMap();
|
||||
const controller = createController(map, pointCollection);
|
||||
const data = await controller.queryPresentationFeatures("junctions", ["J-1"], new AbortController().signal);
|
||||
expect(data.features[0].properties).toEqual({ id: "J-1", [PRESENTATION_FEATURE_SOURCE]: "junctions" });
|
||||
expect(pointCollection.features[0].properties).toEqual({ id: "J-1" });
|
||||
expect(map.setFeatureState).not.toHaveBeenCalled();
|
||||
expect(map.easeTo).not.toHaveBeenCalled();
|
||||
expect(controller.getSnapshot().targets).toEqual([]);
|
||||
});
|
||||
it("clears every controller overlay, preserves layer styles, and invalidates pending analysis", async () => {
|
||||
const map = createMap();
|
||||
map.getLayer.mockReturnValue({} as never);
|
||||
|
||||
Reference in New Issue
Block a user