deno.land / x / lume@v2.1.4 / tests / url.test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { 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);});
lume

Version Info

Tagged at
a month ago