Files
gods-eye-view/src/app/navaraLayers.test.mjs
T
German Khokhlov 6bdb995fe3 feat(satellites): render on Navara
Render satellite fleets and selected targets through mover banks and orbit lines.
Enable the celestial HUD on Navara and keep native follow explicitly in ENU.
Add deterministic interaction, share, orbit, motion and cleanup acceptance QA.
Record complete targeted acceptance and remaining shared cross-shell tile failures.
2026-10-22 23:41:14 +04:00

36 lines
1.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// The layers the Navara mode draws (registerNavaraLayerRenderers): each W1
// layer with a Navara renderer, registered once, through import().
import test from 'node:test';
import assert from 'node:assert/strict';
import { registerNavaraLayerRenderers } from './navaraMode.js';
import {
createLayerAvailability,
layerAvailableOn,
rendererFor,
} from './layers/renderers.js';
test('the Navara mode registers the aircraft layers’ and vessels’ renderers, once', async () => {
assert.equal(layerAvailableOn('military', 'navara'), false);
await Promise.all([
registerNavaraLayerRenderers(),
registerNavaraLayerRenderers(),
]);
await registerNavaraLayerRenderers();
for (const id of [
'flights',
'military',
'local-adsb',
'satellites',
'ais-live-vessels',
])
assert.equal(layerAvailableOn(id, 'navara'), true, id);
assert.deepEqual(
createLayerAvailability('navara')
.available()
.map(({ id }) => id),
['flights', 'military', 'local-adsb', 'satellites', 'ais-live-vessels'],
);
assert.equal(layerAvailableOn('satellites', 'navara'), true);
});