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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { assertSiteSnapshot, build, getSite } from "./utils.ts";
Deno.test("build a site with vento", async (t) => { const site = getSite({ src: "vento", location: new URL("https://example.com/blog"), });
site.filter("upper", (value: string) => value.toUpperCase()); site.filter("fromPage", function (key) { return this?.data[key]; }); site.filter("fromPageAsync", function (key) { return Promise.resolve(this?.data[key]); }, true);
await build(site); await assertSiteSnapshot(t, site);});
lume

Version Info

Tagged at
a month ago