fix: update path
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
4f0c8ea86e
commit
0dea39e03c
1 changed files with 3 additions and 13 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
import path from 'path';
|
||||||
|
|
||||||
var testTile = function (
|
var testTile = function (
|
||||||
prefix,
|
prefix,
|
||||||
tileSize = 256,
|
tileSize = 256,
|
||||||
|
|
@ -10,19 +12,7 @@ var testTile = function (
|
||||||
type,
|
type,
|
||||||
) {
|
) {
|
||||||
if (scale) y += '@' + scale + 'x';
|
if (scale) y += '@' + scale + 'x';
|
||||||
var path =
|
var path = path.join('/styles', prefix, tileSize, z, x, `${y}.${format}`);
|
||||||
'/styles/' +
|
|
||||||
prefix +
|
|
||||||
'/' +
|
|
||||||
tileSize +
|
|
||||||
'/' +
|
|
||||||
z +
|
|
||||||
'/' +
|
|
||||||
x +
|
|
||||||
'/' +
|
|
||||||
y +
|
|
||||||
'.' +
|
|
||||||
format;
|
|
||||||
it(path + ' returns ' + status, function (done) {
|
it(path + ' returns ' + status, function (done) {
|
||||||
var test = supertest(app).get(path);
|
var test = supertest(app).get(path);
|
||||||
test.expect(status);
|
test.expect(status);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue