From 5d12d57a22de06018811a3c465c035949fcd7f82 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 28 Dec 2025 11:52:49 +0200 Subject: [PATCH] test(server): fix broken tests after changes --- apps/server/src/services/icon_packs.spec.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/apps/server/src/services/icon_packs.spec.ts b/apps/server/src/services/icon_packs.spec.ts index 06aebecfb..96da42616 100644 --- a/apps/server/src/services/icon_packs.spec.ts +++ b/apps/server/src/services/icon_packs.spec.ts @@ -34,7 +34,8 @@ describe("Processing icon packs", () => { title: "Boxicons v2", type: "text", content: JSON.stringify(manifest), - attachments: [ defaultAttachment ] + attachments: [ defaultAttachment ], + "#iconPack": "bx" })); expect(iconPack).toBeTruthy(); expect(iconPack?.manifest).toMatchObject(manifest); @@ -131,7 +132,8 @@ describe("CSS generation", () => { title: "Font", mime: "font/woff2" } - ] + ], + "#iconPack": "bx" })); expect(processedResult).toBeTruthy(); const css = generateCss(processedResult!, `/api/attachments/${processedResult?.fontAttachmentId}/download`); @@ -154,8 +156,10 @@ describe("Icon registery", () => { title: "Boxicons v2", type: "text", content: JSON.stringify(manifest), - attachments: [ defaultAttachment ] + attachments: [ defaultAttachment ], + "#iconPack": "bx" })); + expect(iconPack).toBeTruthy(); const registry = generateIconRegistry([ iconPack! ]); expect(registry.sources).toHaveLength(1); expect(registry.sources[0]).toMatchObject({ @@ -185,8 +189,10 @@ describe("Icon registery", () => { "bxs-party": "\uec92" } }), - attachments: [ defaultAttachment ] + attachments: [ defaultAttachment ], + "#iconPack": "bx" })); + expect(iconPack).toBeTruthy(); const registry = generateIconRegistry([ iconPack! ]); expect(registry.sources).toHaveLength(0); });