Fix spawn floorplan move handle

This commit is contained in:
Aymeric Rabot
2026-06-10 14:11:50 -04:00
parent 3a1ba56246
commit 5fd9be05df
4 changed files with 48 additions and 0 deletions
@@ -31,6 +31,7 @@ describe('spawn definition', () => {
expect(spawnDefinition.schemaVersion).toBe(1)
expect(spawnDefinition.category).toBe('site')
expect(spawnDefinition.schema).toBe(SpawnNode)
expect(typeof spawnDefinition.floorplanMoveTarget).toBe('function')
})
test('defaults() returns a value that the schema accepts', () => {
@@ -111,6 +112,7 @@ describe('spawn definition', () => {
const flat = flattenFloorplan(geometry)
expect(flat.some((entry) => entry.kind === 'path' && entry.stroke === '#818cf8')).toBe(true)
expect(flat.some((entry) => entry.kind === 'move-handle')).toBe(true)
expect(flat.some((entry) => entry.kind === 'rotate-arrow')).toBe(true)
})