mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-29 03:09:36 +00:00
committed by
claude[bot]
parent
6fb7bbb6ab
commit
a0720e7584
@@ -63,13 +63,16 @@ test('Help is lazy, ordered after settings, and owns the single About/Guide surf
|
||||
const card = readFileSync(new URL('../src/houseplan-card.ts', import.meta.url), 'utf8');
|
||||
const runtime = readFileSync(new URL('../src/houseplan-editor-runtime.ts', import.meta.url), 'utf8');
|
||||
const styles = readFileSync(new URL('../src/styles/plan.styles.ts', import.meta.url), 'utf8');
|
||||
const dialogStyles = readFileSync(new URL('../src/styles/dialogs.styles.ts', import.meta.url), 'utf8');
|
||||
const header = card.slice(card.indexOf('<div class="zoomctl">'), card.indexOf('</div>\n ${this._canEdit'));
|
||||
assert.ok(header.indexOf('_openSettingsDialog') < header.indexOf('_openSupportDialog'));
|
||||
assert.match(card, /if \(!this\._editorRuntime\)[\s\S]*?_ensureEditorRuntime\(\)[\s\S]*?_openSupportDialog/);
|
||||
assert.equal((runtime.match(/_t\('gs\.about_version'/g) || []).length, 1);
|
||||
assert.match(runtime, /docs\/USER-GUIDE\.ru\.md/);
|
||||
assert.match(runtime, /docs\/USER-GUIDE\.md/);
|
||||
assert.match(styles, /\.support-button\s*\{[\s\S]*?min-width:\s*44px;[\s\S]*?min-height:\s*44px;/);
|
||||
assert.equal((header.match(/header-action/g) || []).length, 2);
|
||||
assert.match(styles, /\.header-action\s*\{[\s\S]*?min-width:\s*44px;[\s\S]*?min-height:\s*44px;/);
|
||||
assert.match(dialogStyles, /\.supportmessage\s*\{[\s\S]*?background:\s*var\(--hp-bg\);/);
|
||||
});
|
||||
|
||||
test('the consent copy names exact geometry, project relay, retention and network address', () => {
|
||||
|
||||
Reference in New Issue
Block a user