import assert from "node:assert/strict"; import { describe, it } from "node:test"; import type { GeoLibreProject } from "@geolibre/core"; import { buildProjectHtml, DEFAULT_VIEWER_BASE_URL, resolveViewerBaseUrl, } from "../apps/geolibre-desktop/src/lib/html-export"; // A minimal project that only exercises the fields the HTML builder touches. const PROJECT = { version: "1.0.0", name: "My Map", layers: [], } as unknown as GeoLibreProject; describe("buildProjectHtml", () => { it("frames the viewer with embed=1 and welcome=0 and inlines the project", () => { const html = buildProjectHtml({ project: PROJECT, title: "My Map", appUrl: "https://web.geolibre.app/", }); assert.match(html, /