Skip to content

Commit

Permalink
refactor: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Jul 14, 2022
1 parent 65bb4d5 commit e4db15f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
17 changes: 8 additions & 9 deletions packages/lambda-tiler/src/__tests__/tile.set.cache.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ConfigImagery, ConfigTileSetRaster, TileSetType } from '@basemaps/config';
import { Epsg, GoogleTms, Nztm2000QuadTms } from '@basemaps/geo';
import { Config, TileSetName } from '@basemaps/shared';
import { GoogleTms } from '@basemaps/geo';
import o from 'ospec';
import sinon from 'sinon';
import { TileSets } from '../tile.set.cache.js';
Expand All @@ -15,13 +14,13 @@ o.spec('TileSetCache', () => {
uri: 's3://foo/bar',
} as ConfigImagery;

const imageTwo = {
id: 'im_id2',
name: 'wellington_urban_2018-19_0-3m',
bounds: { x: 123, y: 456, width: 200, height: 300 },
files: [{ name: 'foo', x: 123, y: 456, width: 200, height: 300 }],
uri: 's3://foo/bar',
} as ConfigImagery;
// const imageTwo = {
// id: 'im_id2',
// name: 'wellington_urban_2018-19_0-3m',
// bounds: { x: 123, y: 456, width: 200, height: 300 },
// files: [{ name: 'foo', x: 123, y: 456, width: 200, height: 300 }],
// uri: 's3://foo/bar',
// } as ConfigImagery;

const imgMap = new Map<string, ConfigImagery>();
imgMap.set(imageOne.id, imageOne);
Expand Down
6 changes: 2 additions & 4 deletions packages/lambda-tiler/src/routes/tile.wmts.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { Config, TileSetType } from '@basemaps/config';
import { GoogleTms, ImageFormat, Nztm2000QuadTms, TileMatrixSet } from '@basemaps/geo';
import { Env, TileSetName, tileWmtsFromPath } from '@basemaps/shared';
import { GoogleTms, ImageFormat, Nztm2000QuadTms } from '@basemaps/geo';
import { Env, tileWmtsFromPath } from '@basemaps/shared';
import { getImageFormat } from '@basemaps/tiler';
import { HttpHeader, LambdaHttpRequest, LambdaHttpResponse } from '@linzjs/lambda';
import { createHash } from 'crypto';
import { Router } from '../router.js';
import { TileSets } from '../tile.set.cache.js';
import { TileSetRaster } from '../tile.set.raster.js';
import { WmtsCapabilities } from '../wmts.capability.js';
import { NotFound, NotModified } from './response.js';
import { TileEtag } from './tile.etag.js';
Expand Down

0 comments on commit e4db15f

Please sign in to comment.