has issues
This commit is contained in:
parent
2e112d7398
commit
c645b0f1d4
96 changed files with 2147083 additions and 5787 deletions
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -26,6 +26,7 @@ const REPEATED_KEYS = [
|
|||
'amenityCount2km',
|
||||
'amenityCount5km',
|
||||
'poi',
|
||||
'overlay',
|
||||
'tt',
|
||||
] as const;
|
||||
const PASSTHROUGH_SINGLE_KEYS = ['share', 'pc'] as const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue