What: After a successful calculateRoute(), a later call whose Directions observable emits { result: undefined } (no throw) does not clear directionsResults$ and does not call setShowDirections(false). The previous polyline stays on the map with no error dialog.
The thrown-error path correctly shows messageDialog.error(...) and skips the cache. The empty-result path is silent.
Would have caught: subscribe handler if (result) { set; show } with no else to hide/clear.
Repro (unit): seed a successful result, then mock MapDirectionsService.route to of({ result: undefined }) and call calculateRoute() again — cached result is still the first route.
Wave 7 tick 5 a3 coverage of `MarksRouteService.calculateRoute`.
**Where:** `projects/spikersoft/src/app/_services/marks-site/marks-map/marks-route.service.ts`
**What:** After a successful `calculateRoute()`, a later call whose Directions observable emits `{ result: undefined }` (no throw) does **not** clear `directionsResults$` and does **not** call `setShowDirections(false)`. The previous polyline stays on the map with no error dialog.
The thrown-error path correctly shows `messageDialog.error(...)` and skips the cache. The empty-result path is silent.
**Would have caught:** subscribe handler `if (result) { set; show } ` with no `else` to hide/clear.
**Repro (unit):** seed a successful result, then mock `MapDirectionsService.route` to `of({ result: undefined })` and call `calculateRoute()` again — cached result is still the first route.
Already present on spikersoft-angularmaster. Empty Directions results call clearDirections(), so a failed follow-up route no longer leaves a stale polyline. Closing.
Already present on `spikersoft-angular` `master`. Empty Directions results call `clearDirections()`, so a failed follow-up route no longer leaves a stale polyline. Closing.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Wave 7 tick 5 a3 coverage of
MarksRouteService.calculateRoute.Where:
projects/spikersoft/src/app/_services/marks-site/marks-map/marks-route.service.tsWhat: After a successful
calculateRoute(), a later call whose Directions observable emits{ result: undefined }(no throw) does not cleardirectionsResults$and does not callsetShowDirections(false). The previous polyline stays on the map with no error dialog.The thrown-error path correctly shows
messageDialog.error(...)and skips the cache. The empty-result path is silent.Would have caught: subscribe handler
if (result) { set; show }with noelseto hide/clear.Repro (unit): seed a successful result, then mock
MapDirectionsService.routetoof({ result: undefined })and callcalculateRoute()again — cached result is still the first route.Already present on
spikersoft-angularmaster. Empty Directions results callclearDirections(), so a failed follow-up route no longer leaves a stale polyline. Closing.