mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
feat: stabilize persisted wall segment identity
Issue: #282 User-Visible: yes
This commit is contained in:
@@ -55,7 +55,7 @@ test('issue 281 Optimize removes exact outer duplicates and rehosts their window
|
||||
assert.equal(result.report.partitionsReconciled, 3);
|
||||
assert.equal(result.report.openingsRehosted, 2);
|
||||
assert.deepEqual(result.config, expected);
|
||||
assert.ok(result.config.spaces[0].openings.every((opening) => !opening.host));
|
||||
assert.ok(result.config.spaces[0].openings.every((opening) => opening.host?.kind === 'wall'));
|
||||
const second = optimizePlans(result.config, result.layout);
|
||||
assert.equal(second.changed, false);
|
||||
assert.deepEqual(second.config, result.config);
|
||||
|
||||
Reference in New Issue
Block a user