mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-13 07:40:59 +00:00
test(tours): count the new preview key, lower the await-in-loop entry, type the adopt rows
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
@@ -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([
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user