Skip to main content
Module

x/lume/tests/url.test.ts

πŸ”₯ Static site generator for Deno πŸ¦•
Very Popular
Go to Latest
File
import { assertSiteSnapshot, build, getSite } from "./utils.ts";
Deno.test("url and htmlUrl update href", async (t) => { const site = getSite({ dev: true, 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({ dev: true, src: "url", location: new URL("https://example.com/"), }, { url: { names: { url: "urlify", htmlUrl: "htmlUrlify", }, }, });
await build(site); await assertSiteSnapshot(t, site);});