mirror of
https://github.com/Matysh/houseplan-card
synced 2026-10-06 22:49:16 +00:00
fix: materialize empty wall catalog for new spaces
Issue: #324 User-Visible: yes
This commit is contained in:
@@ -2,11 +2,23 @@ import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
|
||||
import {
|
||||
createEmptySpaceConfig,
|
||||
initialSpaceDisplayDraft,
|
||||
switchSpacePlanSource,
|
||||
touchSpaceDisplay,
|
||||
} from '../test-build/space-dialog.js';
|
||||
|
||||
test('a fresh space is a complete empty v8/v9 wall-model document (#324)', () => {
|
||||
assert.deepEqual(createEmptySpaceConfig('floor', 'Ground floor'), {
|
||||
id: 'floor',
|
||||
title: 'Ground floor',
|
||||
plan_url: null,
|
||||
view_box: [0, 0, 1, 1],
|
||||
rooms: [],
|
||||
wall_segments: [],
|
||||
});
|
||||
});
|
||||
|
||||
test('fresh create projects honest File and Draw display defaults', () => {
|
||||
const file = initialSpaceDisplayDraft();
|
||||
assert.deepEqual(file, {
|
||||
|
||||
Reference in New Issue
Block a user