Add test cases for "different parameters"
This commit is contained in:
parent
f8dd3af5f7
commit
c4c37ec2b7
1 changed files with 5 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue