A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.
JavaScript 3d-globecesiumflight-trackinggeospatialgeospatial-intelligencegisosintphotogrammetrysatellite-trackingspatial-intelligencewebglworldview
test(navigation): read trackable nouns from canonical packet owner
Kevin Rajandaff74fe04b7
diff --git a/src/navigationPolicyFrame.test.mjs b/src/navigationPolicyFrame.test.mjsindex a861870cf..5110232f1 100644--- a/src/navigationPolicyFrame.test.mjs+++ b/src/navigationPolicyFrame.test.mjs@@ -6,6 +6,7 @@ import { readdirSync, readFileSync } from 'node:fs';import { join, relative } from 'node:path';import test from 'node:test';import { fileURLToPath } from 'node:url';+import { TRACKABLE_FAMILIES } from './agent/worldPacket.js';import { setLocale } from './i18n/index.js';import {COCKPIT_REFUSAL_NOUNS,@@ -68,10 +69,8 @@ const NOUN_LITERAL =/\bnoun\s*=\s*'([^']+)'|\bconst noun\s*=\s*[^?;]*\?\s*'([^']+)'\s*:\s*'([^']+)'/g;function trackableKinds() {- const source = readFileSync(join(SRC, 'voice/gevActions.js'), 'utf8');- const block = source.match(/const TRACKABLE_FAMILIES = \[([\s\S]*?)\];/);- assert.ok(block, 'TRACKABLE_FAMILIES is still in gevActions.js');- return [...block[1].matchAll(/kind:\s*'([^']+)'/g)].map((m) => m[1]);+ // This is shared with voice; test the exported owner, not its file position.+ return TRACKABLE_FAMILIES.map(({ kind }) => kind);}// Non-literal arguments: what each one can be. A wrapper's own `noun` (or all