mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Merge main (82022306) into fix/flights-unpositioned-rows-complete
Resolve conflicts with main by keeping both sides: - CHANGELOG.md: keep this PR's flights entry above main's newer entries. - src/layers/flights/records.test.mjs: keep this PR's position-less retention test alongside main's civil emergency-status test. src/sources/live/aircraft.js merged cleanly: openSkySnapshot keeps main's emergencyByIcao normalizer and passes openSkyUnpositionedId to admitRecords. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
commit
2e4beb9418
351 files changed
+44391
-1971
No files matched your search
@@ -130,3 +130,13 @@ test('complete snapshots age out vanished aircraft and retain position-less ones
|
||||
store.data.get('abc123').observedReceiptMs = Date.now() - 300001;
|
||||
assert.equal(absent('abc123'), 'stale');
|
||||
});
|
||||
|
||||
test('civil emergency status follows the latest poll instead of sticking', () => {
|
||||
const store = records();
|
||||
const first = store.receive(observation({ squawk: '7700' }), view());
|
||||
assert.equal(first.meta.squawk, '7700');
|
||||
assert.equal(first.meta.emergency.kind, 'general');
|
||||
const next = store.receive(observation({ squawk: '2000' }), view());
|
||||
assert.equal(next.meta.squawk, '2000');
|
||||
assert.equal(next.meta.emergency, null);
|
||||
});
|
||||
Reference in new issue
Block a user