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

redirects.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { assertSiteSnapshot, build, getSite } from "./utils.ts";import redirects from "../plugins/redirects.ts";
Deno.test("redirects plugin", async (t) => { const site = getSite({ src: "redirects", });
site.use(redirects());
await build(site); await assertSiteSnapshot(t, site);});
Deno.test("redirects plugin for netlify", async (t) => { const site = getSite({ src: "redirects", });
site.use(redirects({ output: "netlify", }));
await build(site); await assertSiteSnapshot(t, site);});
Deno.test("redirects plugin for vercel", async (t) => { const site = getSite({ src: "redirects", });
site.use(redirects({ output: "vercel", }));
await build(site); await assertSiteSnapshot(t, site);});
Deno.test("redirects plugin for json", async (t) => { const site = getSite({ src: "redirects", });
site.use(redirects({ output: "json", }));
await build(site); await assertSiteSnapshot(t, site);});
lume

Version Info

Tagged at
7 months ago