forked from Untrivial-ai/agent-orchestrator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanifest.test.ts
More file actions
29 lines (26 loc) · 1.04 KB
/
Copy pathmanifest.test.ts
File metadata and controls
29 lines (26 loc) · 1.04 KB
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
import { describe, expect, it, vi } from "vitest";
vi.mock("@/lib/project-name", () => ({
getProjectName: () => "Agent Orchestrator",
}));
describe("app manifest", () => {
it("builds the PWA manifest with project-aware naming and icons", async () => {
const { buildPwaManifest } = await import("@/lib/pwa-manifest");
expect(buildPwaManifest()).toMatchObject({
name: "ao | Agent Orchestrator",
short_name: "ao",
start_url: "/",
scope: "/",
display: "standalone",
orientation: "portrait-primary",
background_color: "#121110",
theme_color: "#121110",
icons: [
{ src: "/apple-icon", sizes: "180x180", type: "image/png" },
{ src: "/icon-192", sizes: "192x192", type: "image/png", purpose: "any" },
{ src: "/icon-192", sizes: "192x192", type: "image/png", purpose: "maskable" },
{ src: "/icon-512", sizes: "512x512", type: "image/png", purpose: "any" },
{ src: "/icon-512", sizes: "512x512", type: "image/png", purpose: "maskable" },
],
});
});
});