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

picture.test.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { assertSiteSnapshot, build, getSite } from "./utils.ts";import transformImages from "../plugins/transform_images.ts";import picture from "../plugins/picture.ts";
Deno.test("picture plugin", async (t) => { const site = getSite({ src: "picture", });
site.use(picture()); site.use(transformImages({ cache: false, }));
await build(site); await assertSiteSnapshot(t, site);});
lume

Version Info

Tagged at
a month ago