mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 03:14:00 +00:00
fix(app): the Navara notice no longer calls voice unavailable
Voice runs on Navara since 18b5475b (the viewer-only actions refuse with
UNAVAILABLE_ON_ENGINE); the notice still listed it as unavailable.
This commit is contained in:
1 parent
18b5475b8a
commit
ba039f7974
2 files changed
+4
-4
No files matched your search
@@ -29,8 +29,8 @@ export function navaraModeNotice(availability) {
|
|||||||
return Object.freeze({
|
return Object.freeze({
|
||||||
label: 'Experimental Navara engine',
|
label: 'Experimental Navara engine',
|
||||||
detail: names.length
|
detail: names.length
|
||||||
? `Data layers: ${names.join(', ')}; the other layers, cockpit, director and voice are unavailable`
|
? `Data layers: ${names.join(', ')}; the other layers, cockpit and director are unavailable`
|
||||||
: 'No data layers on this engine yet; cockpit, director and voice are unavailable',
|
: 'No data layers on this engine yet; cockpit and director are unavailable',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -113,14 +113,14 @@ test('without a viewer the tools run the governor on the engine, show the notice
|
|||||||
]);
|
]);
|
||||||
assert.match(
|
assert.match(
|
||||||
`${notice.label}: ${notice.detail}`,
|
`${notice.label}: ${notice.detail}`,
|
||||||
/^Experimental Navara engine: no data layers on this engine yet; cockpit, director and voice are unavailable$/i,
|
/^Experimental Navara engine: no data layers on this engine yet; cockpit and director are unavailable$/i,
|
||||||
);
|
);
|
||||||
// With Navara renderers, the notice names the layers it shows.
|
// With Navara renderers, the notice names the layers it shows.
|
||||||
const registry = createRendererRegistry();
|
const registry = createRendererRegistry();
|
||||||
registry.register('navara', { satellites: () => ({}), flights: () => ({}) });
|
registry.register('navara', { satellites: () => ({}), flights: () => ({}) });
|
||||||
assert.equal(
|
assert.equal(
|
||||||
navaraModeNotice(createLayerAvailability('navara', { registry })).detail,
|
navaraModeNotice(createLayerAvailability('navara', { registry })).detail,
|
||||||
'Data layers: Live Flights, Satellites; the other layers, cockpit, director and voice are unavailable',
|
'Data layers: Live Flights, Satellites; the other layers, cockpit and director are unavailable',
|
||||||
);
|
);
|
||||||
// The governor drives the engine's continuous rendering.
|
// The governor drives the engine's continuous rendering.
|
||||||
assert.equal(isRenderGovernorInstalled(engine), true);
|
assert.equal(isRenderGovernorInstalled(engine), true);
|
||||||
|
|||||||
Reference in new issue
Block a user