Correcting collection of disconnected features

This commit is contained in:
Joe McMahon 2026-02-11 19:50:14 -05:00
parent a0e05f3f56
commit d3defbfbcd
2 changed files with 57 additions and 50 deletions

View file

@ -145,6 +145,8 @@ test.describe("Zone Export", () => {
expect(typeof testZoneFeature.geometry).toBe("object");
expect(testZoneFeature.geometry).toHaveProperty("type");
// Note: Geometry type can be "Polygon" (single component) or "MultiPolygon" (multiple disconnected components)
// For this test with contiguous BFS-selected cells, we expect "Polygon"
expect(testZoneFeature.geometry.type).toBe("Polygon");
expect(testZoneFeature.geometry).toHaveProperty("coordinates");