mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 19:01:08 +00:00
cloudflare worker supports PMTILES_PATH
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
import { test } from "zora";
|
||||
import { pmtiles_path } from "./worker";
|
||||
|
||||
test("stub test", (assertion) => {
|
||||
assertion.ok(true);
|
||||
test("pmtiles path", (assertion) => {
|
||||
let result = pmtiles_path(undefined, "foo");
|
||||
assertion.equal(result, "foo.pmtiles");
|
||||
});
|
||||
|
||||
test("pmtiles path", (assertion) => {
|
||||
let result = pmtiles_path("folder/{name}/file.pmtiles", "foo");
|
||||
assertion.equal(result, "folder/foo/file.pmtiles");
|
||||
});
|
||||
|
||||
test("pmtiles path with slash", (assertion) => {
|
||||
let result = pmtiles_path("folder/{name}/file.pmtiles", "foo/bar");
|
||||
assertion.equal(result, "folder/foo/bar/file.pmtiles");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user