mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
refactor: separate Layers panel presentation from lifecycle actions
This commit is contained in:
1 parent
31f1923633
commit
07cf1695ff
14 files changed
+665
-398
No files matched your search
@@ -746,7 +746,9 @@ test('Global Context names its mixed contact cycle without changing the stable m
|
||||
|
||||
test('Global Context uses its dedicated right rail without a duplicate Data Layers row', () => {
|
||||
assert.match(contextLayer, /id:\s*'military-awareness'[\s\S]*?showInTogglePanel:\s*false/);
|
||||
assert.match(manager, /if \(!layer\.showInTogglePanel\) continue;/);
|
||||
const panel = fs.readFileSync(path.join(ROOT, 'src', 'ui', 'layerPanel.js'), 'utf8');
|
||||
assert.match(panel, /if \(!layer\.showInTogglePanel\) continue;/);
|
||||
assert.match(manager, /getLayers: \(\) => this\.getAll\(\)/);
|
||||
assert.match(html, /id="global-context-panel"/);
|
||||
assert.match(html, /id="global-context-flights-btn"/);
|
||||
assert.match(html, /id="global-context-missions-btn"/);
|
||||
|
||||
Reference in new issue
Block a user