protomaps-themes-base
Version:
Protomaps basemap themes for MapLibre GL JS
27 lines (23 loc) • 622 B
text/typescript
import assert from "node:assert";
import { test } from "node:test";
import { validateStyleMin } from "@maplibre/maplibre-gl-style-spec";
import layers from "../src/index";
import themes from "../src/themes";
import "./base_layers.test";
import "./themes.test";
const STUB = {
version: 8,
glyphs: "https://example.com/{fontstack}/{range}.pbf",
sources: {
sourcename: {
type: "vector",
},
},
};
test("validate all final themes", () => {
for (const i in themes) {
STUB.layers = layers("sourcename", i);
const errors = validateStyleMin(STUB);
assert.deepStrictEqual([], errors);
}
});