This commit is contained in:
Andras Schmelczer 2026-05-06 22:40:46 +01:00
parent 28323f145e
commit 94f9c0d594
76 changed files with 3238 additions and 1230 deletions

View file

@ -12,6 +12,8 @@ test('buildScreenshotRequest accepts supported screenshot parameters', () => {
og: '1',
path: '/invite/abc123',
filter: ['Last known price:100000:500000', 'Total floor area (sqm):50:150'],
school: 'primary:good:2:1:10',
crime: ['Burglary (avg/yr):0:5', 'Vehicle crime (avg/yr):0:10'],
poi: 'supermarket',
tt: 'transit:kings-cross:Kings Cross:b:0:30',
});
@ -25,6 +27,11 @@ test('buildScreenshotRequest accepts supported screenshot parameters', () => {
'Last known price:100000:500000',
'Total floor area (sqm):50:150',
]);
assert.deepEqual(result.qs.getAll('school'), ['primary:good:2:1:10']);
assert.deepEqual(result.qs.getAll('crime'), [
'Burglary (avg/yr):0:5',
'Vehicle crime (avg/yr):0:10',
]);
});
test('buildScreenshotRequest rejects invalid numeric values', () => {