mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-28 18:17:23 +01:00
Correcting collection of disconnected features
This commit is contained in:
parent
a0e05f3f56
commit
d3defbfbcd
2 changed files with 57 additions and 50 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue