mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 02:56:10 +00:00
test(atlas): cache the test places' regions in one go rather than an awaited loop
This commit is contained in:
@@ -634,7 +634,7 @@ describe('Atlas page and passport card count the same places and cities (#3137)'
|
||||
lng: 12.0972,
|
||||
address: 'Steinerne Bruecke, Regensburg, Bavaria, Germany',
|
||||
});
|
||||
for (const id of [hotelA, hotelB, square, castle, bridge]) await cacheRegion(id, 'Bavaria');
|
||||
await Promise.all([hotelA, hotelB, square, castle, bridge].map((id) => cacheRegion(id, 'Bavaria')));
|
||||
// A bare name holds no city, and two places without address or coordinates are two places.
|
||||
await addPlace(first.id, 'Beer garden', { address: 'Augustiner Keller' });
|
||||
await addPlace(second.id, 'Beer hall', { address: 'Hofbraeuhaus' });
|
||||
|
||||
Reference in New Issue
Block a user