forked from Lilly-Protocol/lily-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanifest.test.ts
More file actions
30 lines (27 loc) · 907 Bytes
/
Copy pathmanifest.test.ts
File metadata and controls
30 lines (27 loc) · 907 Bytes
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
import { routes, siteConfig } from "@/config/site";
import manifest from "./manifest";
describe("web app manifest", () => {
it("exposes install metadata and app icons", () => {
const appManifest = manifest();
expect(appManifest.name).toBe(siteConfig.name);
expect(appManifest.short_name).toBe(siteConfig.shortName);
expect(appManifest.start_url).toBe(routes.home);
expect(appManifest.display).toBe("standalone");
expect(appManifest.theme_color).toBe(siteConfig.themeColor);
expect(appManifest.background_color).toBe(siteConfig.themeColor);
expect(appManifest.icons).toEqual([
{
src: "/icons/lily-icon.svg",
sizes: "any",
type: "image/svg+xml",
purpose: "any",
},
{
src: "/icons/lily-maskable-icon.svg",
sizes: "any",
type: "image/svg+xml",
purpose: "maskable",
},
]);
});
});