mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 19:01:08 +00:00
18 lines
547 B
TypeScript
18 lines
547 B
TypeScript
import { test } from "zora";
|
|
import { pmtiles_path } from "./worker";
|
|
|
|
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");
|
|
});
|