has issues

This commit is contained in:
Andras Schmelczer 2026-05-25 13:20:17 +01:00
parent 2e112d7398
commit c645b0f1d4
96 changed files with 2147083 additions and 5787 deletions

View file

@ -24,6 +24,7 @@ test('buildScreenshotRequest accepts supported screenshot parameters', () => {
amenityCount2km: 'Number%20of%20amenities%20(Cafe)%20within%202km:2:8',
amenityCount5km: 'Number%20of%20amenities%20(Park)%20within%205km:1:20',
poi: 'supermarket',
overlay: ['noise', 'crime-hotspots'],
tt: 'transit:kings-cross:Kings Cross:b:0:30',
share: 'abc123',
pc: 'SW1A 1AA',
@ -59,6 +60,7 @@ test('buildScreenshotRequest accepts supported screenshot parameters', () => {
assert.deepEqual(result.qs.getAll('amenityCount5km'), [
'Number%20of%20amenities%20(Park)%20within%205km:1:20',
]);
assert.deepEqual(result.qs.getAll('overlay'), ['noise', 'crime-hotspots']);
assert.equal(result.qs.get('share'), 'abc123');
assert.equal(result.qs.get('pc'), 'SW1A 1AA');
assert.equal(result.qs.get('lang'), 'fr');

View file

@ -26,6 +26,7 @@ const REPEATED_KEYS = [
'amenityCount2km',
'amenityCount5km',
'poi',
'overlay',
'tt',
] as const;
const PASSTHROUGH_SINGLE_KEYS = ['share', 'pc'] as const;