mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
refactor: extract application construction and lifecycle
This commit is contained in:
1 parent
092f28e301
commit
4d37760314
36 files changed
+1363
-382
No files matched your search
@@ -151,3 +151,11 @@ test('the shipped layer boots keyless-honest before any status check', () => {
|
||||
assert.ok(!LIVE_CLAIM.test(stats.loadingLabel), `boot label implies live data: ${stats.loadingLabel}`);
|
||||
assert.equal(layerFeedState(stats), 'fallback');
|
||||
});
|
||||
|
||||
test('traffic can be destroyed before its first enable and destroyed repeatedly', async () => {
|
||||
const { default: traffic } = await import('./traffic.js');
|
||||
const viewer = { camera: { changed: { removeEventListener() {} } } };
|
||||
assert.doesNotThrow(() => traffic.destroy(viewer));
|
||||
assert.doesNotThrow(() => traffic.destroy(viewer));
|
||||
assert.equal(traffic.getStats().count, 0);
|
||||
});
|
||||
Reference in new issue
Block a user