mirror of
https://github.com/zadam/trilium.git
synced 2026-01-01 04:04:25 +01:00
test(server): fix broken tests after changes
This commit is contained in:
parent
5cc2296768
commit
5d12d57a22
@ -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);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user