Add more tests + better structuring

This commit is contained in:
Petr Sloup
2016-03-09 17:25:53 +01:00
parent a0007b42f9
commit 9efa22b52b
3 changed files with 57 additions and 22 deletions

View File

@@ -16,7 +16,7 @@ describe('Vector tiles', function() {
testTile(prefix, 14, 8581, 5738, 200);
});
describe('error tiles', function() {
describe('non-existent requests return 4xx', function() {
testTile('non_existent', 0, 0, 0, 404);
testTile(prefix, -1, 0, 0, 404); // err zoom
testTile(prefix, 20, 0, 0, 404); // zoom out of bounds