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