Add test cases for "different parameters"

This commit is contained in:
Miko 2024-12-19 10:14:15 +01:00 committed by GitHub
parent f8dd3af5f7
commit c4c37ec2b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,15 +123,16 @@ describe('Static endpoints', function () {
});
describe('different parameters', function () {
//invalid center
testStatic(prefix, '-180,-90,180,90/20x20', 'png', 400, 2);
testStatic(prefix, '-180,-80,0,80/280x160', 'png', 200);
testStatic(prefix, '-180,-80,180,80/20x20', 'png', 200, 2);
testStatic(prefix, '0,0,1,1/200x200', 'png', 200, 3);
//invalid center
testStatic(prefix, '-280,-80,0,80/280x160', 'png', 400);
});
});
describe('invalid requests return 4xx', function () {
//invalid center
testStatic(prefix, '-280,-80,0,80/280x160', 'png', 400);
testStatic(prefix, '-180,-90,180,90/20x20', 'png', 400, 2);
testStatic(prefix, '0,87,1,88/5x2', 'png', 400);
testStatic(prefix, '0,0,1,1/1x1', 'gif', 400);