mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-18 09:12:18 +00:00
test: cover pass ambiguity and retain legacy ISS response contract
This commit is contained in:
1 parent
901d66adf3
commit
6d6d43c36c
4 files changed
+44
-1
No files matched your search
@@ -2067,7 +2067,10 @@ function nextSatellitePass(viewer, dataManager, args) {
|
||||
getNextIssPass: (options) => layer.getNextSatellitePass(identity.noradId, { ...options, requireVisible: args.visibleOnly === true }),
|
||||
} }]]) };
|
||||
const result = nextIssPass(viewer, adapter, args);
|
||||
if (result.error) result.error = result.error.replace(/ISS/g, identity.name || String(identity.noradId));
|
||||
if (result.error) {
|
||||
result.error = result.error.replace(/ISS/g, identity.name || String(identity.noradId));
|
||||
if (args.visibleOnly === true) result.error += ' Search required estimated illumination under a dark sky.';
|
||||
}
|
||||
return { ...result, action: 'next_satellite_pass', noradId: identity.noradId, name: identity.name, visibleOnly: args.visibleOnly === true, horizonHours: 24 };
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user