Update and add tests

This commit is contained in:
Petr Sloup
2016-03-11 11:27:17 +01:00
parent 8a46bd8b88
commit 1c73c14d84
5 changed files with 94 additions and 11 deletions
+3 -1
View File
@@ -1,6 +1,6 @@
var testTile = function(prefix, z, x, y, format, status, scale, type) {
if (scale) y += '@' + scale + 'x';
var path = '/' + prefix + '/' + z + '/' + x + '/' + y + '.' + format;
var path = '/raster/' + prefix + '/' + z + '/' + x + '/' + y + '.' + format;
it(path + ' returns ' + status, function(done) {
var test = supertest(app).get(path);
test.expect(status);
@@ -38,5 +38,7 @@ describe('Raster tiles', function() {
testTile('test', 0, 0, 0, 'png', 404, 1);
testTile('test', 0, 0, 0, 'png', 404, 4);
testTile('hybrid', 0, 0, 0, 'png', 404);
});
});