Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Barron committed Mar 19, 2020
1 parent c855c71 commit 1985a37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/modules/geo-layers/tile-layer/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ test('getTileIndices', t => {
testCase.viewport,
testCase.maxZoom,
testCase.minZoom,
testCase.zRange,
testCase.tileSize
);
t.deepEqual(getTileIds(result), testCase.output, testCase.title);
Expand All @@ -185,8 +186,8 @@ test('getTileIndices', t => {
test('tileToBoundingBox', t => {
for (const testCase of TEST_CASES) {
if (testCase.output.length) {
const {viewport, minZoom, maxZoom, tileSize} = testCase;
const boundingBoxes = getTileIndices(viewport, maxZoom, minZoom, tileSize).map(tile =>
const {viewport, minZoom, maxZoom, tileSize, zRange} = testCase;
const boundingBoxes = getTileIndices(viewport, maxZoom, minZoom, zRange, tileSize).map(tile =>
tileToBoundingBox(viewport, tile.x, tile.y, tile.z, tileSize)
);
const result = mergeBoundingBox(boundingBoxes);
Expand Down

0 comments on commit 1985a37

Please sign in to comment.