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

resolve_urls.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";import resolveUrls from "../plugins/resolve_urls.ts";import slugifyUrls from "../plugins/slugify_urls.ts";
Deno.test("relative_url plugin", async (t) => { const site = getSite({ src: "resolve_urls", });
site.copy("statics", ""); site.use(resolveUrls()); site.use(slugifyUrls()); // Test combined with slugify_urls
await build(site); await assertSiteSnapshot(t, site);});
Deno.test("relative_url plugin (without slugify)", async (t) => { const site = getSite({ src: "resolve_urls", });
site.copy("statics", ""); site.use(resolveUrls());
await build(site); await assertSiteSnapshot(t, site);});
lume

Version Info

Tagged at
7 months ago