mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 18:34:09 +00:00
test: hold the branch's tests to the type and lint gates
The booking save helper answers a Reservation the way the dialogs' onSave does, and takes the payload the sheets read back. The export tests resolve their routing promise without non-null assertions, the autocomplete test reads its own console spy, and the Photon tally test asks its five dropped questions together instead of awaiting in a loop. The Photon address line falls back to empty when a feature has none. The repair test now expects the dashboard to place the cleared beach in Germany through the borders, as the Atlas map does since #2875. The client lint baseline follows the counts this branch lowered.
This commit is contained in:
@@ -148,7 +148,7 @@ export function asSuggestion(feature: PhotonFeature): Suggestion | null {
|
||||
// place is. Cut by the name rather than at its first comma, which a name can
|
||||
// hold; a house without a name is titled by its number, as Nominatim does.
|
||||
const name = feature.properties.name?.trim();
|
||||
const line = hit.display_name;
|
||||
const line = hit.display_name ?? '';
|
||||
const [head = '', ...rest] = line.split(', ');
|
||||
const mainText = name || head;
|
||||
if (!mainText) return null;
|
||||
|
||||
Reference in New Issue
Block a user