deno.land / x / lume@v2.1.4 / tests / url.test.ts
1234567891011121314151617181920212223242526272829import { assertSiteSnapshot, build, getSite } from "./utils.ts";
Deno.test("url and htmlUrl update href", async (t) => { const site = getSite({ src: "url", location: new URL("https://example.com/test/"), });
await build(site); await assertSiteSnapshot(t, site);});
Deno.test("configure url and htmlUrl names", async (t) => { const site = getSite({ src: "url", location: new URL("https://example.com/"), }, { url: { names: { url: "urlify", htmlUrl: "htmlUrlify", }, }, });
await build(site); await assertSiteSnapshot(t, site);});
Version Info