From c4c37ec2b7f6af5b9cfa5ff2666bd7f357590e99 Mon Sep 17 00:00:00 2001 From: Miko <39791814+okimiko@users.noreply.github.com> Date: Thu, 19 Dec 2024 10:14:15 +0100 Subject: [PATCH] Add test cases for "different parameters" --- test/static.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/static.js b/test/static.js index 7aa57b9..e949720 100644 --- a/test/static.js +++ b/test/static.js @@ -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);