Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

test(tours): count the new preview key, lower the await-in-loop entry, type the adopt rows

Maurice2c867673bf0f
diff --git a/server/scripts/eslint-baseline.json b/server/scripts/eslint-baseline.json
index a05d68407..cac4010e2 100644
--- a/server/scripts/eslint-baseline.json
+++ b/server/scripts/eslint-baseline.json
@@ -5,7 +5,7 @@
"@typescript-eslint/no-require-imports": 18,
"@typescript-eslint/no-unsafe-function-type": 1,
"@typescript-eslint/no-unused-vars": 36,
- "no-await-in-loop": 563,
+ "no-await-in-loop": 562,
"no-console": 235,
"no-empty": 6
},
diff --git a/server/tests/unit/nest/places.service.test.ts b/server/tests/unit/nest/places.service.test.ts
index 55d6fc253..16fbb3d71 100644
--- a/server/tests/unit/nest/places.service.test.ts
+++ b/server/tests/unit/nest/places.service.test.ts
@@ -1394,7 +1394,8 @@ describe('importGpx deduplication', () => {
testDb.prepare('UPDATE places SET route_geometry = ? WHERE id = ?').run(line, id);
return id;
});
- const row = (name: string) => ({ name, lat: 46.1, lng: 11.1, routeGeometry: line }) as any;
+ type Row = Parameters<PlacesService['tracksToAdopt']>[1][number];
+ const row = (name: string) => ({ name, lat: 46.1, lng: 11.1, routeGeometry: line }) as unknown as Row;
const adopt = await svc.tracksToAdopt(String(trip.id), [row('GARMIN HIKE'), row(''), row('Garmin hike'), row('garmin hike')]);
expect([...adopt.entries()]).toEqual([
diff --git a/shared/src/i18n/tours-locales.spec.ts b/shared/src/i18n/tours-locales.spec.ts
index 554bb8b17..372ccbb5e 100644
--- a/shared/src/i18n/tours-locales.spec.ts
+++ b/shared/src/i18n/tours-locales.spec.ts
@@ -20,7 +20,7 @@ const toursModules = import.meta.glob<{ default: TranslationStrings }>('./*/tour
const TOUR_DOMAINS: { file: string; generalKeyCount: number; modules: DomainModules }[] = [
{
file: 'tours',
- generalKeyCount: 1349,
+ generalKeyCount: 1350,
modules: toursModules,
},
{