mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
refactor: separate application UI state owners
This commit is contained in:
1 parent
ddc1edf3af
commit
dc81cf585c
34 files changed
+3378
-2201
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { readShellSource } from '../testSupport/readShellSource.mjs';
|
||||
// Director-level pins for scene playback.
|
||||
//
|
||||
// scenePolicy.test.mjs pins the pure decisions; these pin the wiring, which is
|
||||
@@ -483,7 +484,7 @@ test('applyVisualState gates the map-stack switch on both sides of its await', (
|
||||
// another setStack() arrives, and a winning state that omits `mapStack`
|
||||
// never issues one — every normalized scene shot omits it — so a stale
|
||||
// switch would otherwise stand on the globe.
|
||||
const source = fs.readFileSync(new URL('../ui/applicationShell.js', import.meta.url), 'utf8');
|
||||
const source = readShellSource();
|
||||
const method = source.match(/\n {2}async applyVisualState\([\s\S]*?\n {2}\}\n/);
|
||||
assert.ok(method, 'applyVisualState is missing from ui.js');
|
||||
assert.match(method[0], /async applyVisualState\(state = \{\}, \{ isCurrent = null \} = \{\}\)/);
|
||||
|
||||
Reference in new issue
Block a user