deno.land / x / lume@v2.1.4 / tests / resolve_urls.test.ts
1234567891011121314151617181920212223242526272829import { 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);});
Version Info