fix: update path

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
Andrew Calcutt 2024-01-25 21:05:43 -05:00
parent 4f0c8ea86e
commit 0dea39e03c

View file

@ -1,3 +1,5 @@
import path from 'path';
var testTile = function (
prefix,
tileSize = 256,
@ -10,19 +12,7 @@ var testTile = function (
type,
) {
if (scale) y += '@' + scale + 'x';
var path =
'/styles/' +
prefix +
'/' +
tileSize +
'/' +
z +
'/' +
x +
'/' +
y +
'.' +
format;
var path = path.join('/styles', prefix, tileSize, z, x, `${y}.${format}`);
it(path + ' returns ' + status, function (done) {
var test = supertest(app).get(path);
test.expect(status);