mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
* Typing improvements [#287] * rename FileApiSource to FileSource * In a few cases we need to use any and biome-ignore. Deferring any restructuring here to js v4. * replace prettier with biome
This commit is contained in:
@@ -371,7 +371,7 @@ test("pmtiles get metadata", async () => {
|
||||
);
|
||||
const p = new PMTiles(source);
|
||||
const metadata = await p.getMetadata();
|
||||
assert.ok(metadata.name);
|
||||
assert.ok((metadata as { name: string }).name);
|
||||
});
|
||||
|
||||
// echo '{"type":"Polygon","coordinates":[[[0,0],[0,1],[1,0],[0,0]]]}' | ./tippecanoe -zg -o test_fixture_2.pmtiles
|
||||
@@ -383,7 +383,7 @@ test("pmtiles handle retries", async () => {
|
||||
source.etag = "1";
|
||||
const p = new PMTiles(source);
|
||||
const metadata = await p.getMetadata();
|
||||
assert.ok(metadata.name);
|
||||
assert.ok((metadata as { name: string }).name);
|
||||
source.etag = "2";
|
||||
source.replaceData("test/data/test_fixture_2.pmtiles");
|
||||
assert.ok(await p.getZxy(0, 0, 0));
|
||||
|
||||
Reference in New Issue
Block a user