mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
test: update additive tool inventory and satellite boundary closure
This commit is contained in:
1 parent
c96a250253
commit
cfe573c6e6
2 files changed
+6
-3
No files matched your search
@@ -1719,6 +1719,7 @@
|
|||||||
"src/data/infrastructure.js",
|
"src/data/infrastructure.js",
|
||||||
"src/data/installationFeedback.js",
|
"src/data/installationFeedback.js",
|
||||||
"src/data/issPass.js",
|
"src/data/issPass.js",
|
||||||
|
"src/data/satellitePass.js",
|
||||||
"src/data/labelArbiter.js",
|
"src/data/labelArbiter.js",
|
||||||
"src/data/layerState.js",
|
"src/data/layerState.js",
|
||||||
"src/data/localGeojson.js",
|
"src/data/localGeojson.js",
|
||||||
|
|||||||
@@ -24,15 +24,17 @@ const css = readStylesheet(new URL('../style.css', import.meta.url));
|
|||||||
|
|
||||||
function realtimeTools() { return GEV_REALTIME_TOOLS; }
|
function realtimeTools() { return GEV_REALTIME_TOOLS; }
|
||||||
|
|
||||||
test('Realtime schema exposes the authoritative 28-tool inventory', () => {
|
test('Realtime schema exposes the authoritative 29-tool inventory', () => {
|
||||||
const tools = realtimeTools();
|
const tools = realtimeTools();
|
||||||
assert.equal(tools.length, 28);
|
assert.equal(tools.length, 29);
|
||||||
const names = tools.map((tool) => tool.name);
|
const names = tools.map((tool) => tool.name);
|
||||||
assert.equal(new Set(names).size, 28, 'tool names are unique');
|
assert.equal(new Set(names).size, 29, 'tool names are unique');
|
||||||
assert.ok(names.includes('set_context_mode'));
|
assert.ok(names.includes('set_context_mode'));
|
||||||
assert.ok(names.includes('control_cockpit'));
|
assert.ok(names.includes('control_cockpit'));
|
||||||
assert.ok(names.includes('select_nearest_aircraft'));
|
assert.ok(names.includes('select_nearest_aircraft'));
|
||||||
assert.ok(names.includes('control_radio'));
|
assert.ok(names.includes('control_radio'));
|
||||||
|
assert.ok(names.includes('next_satellite_pass'));
|
||||||
|
assert.ok(names.includes('next_iss_pass'));
|
||||||
// Every tool closes its parameter object: an open schema lets the model
|
// Every tool closes its parameter object: an open schema lets the model
|
||||||
// invent arguments the runner silently drops.
|
// invent arguments the runner silently drops.
|
||||||
for (const tool of tools) {
|
for (const tool of tools) {
|
||||||
|
|||||||
Reference in new issue
Block a user