mirror of
https://github.com/zadam/trilium.git
synced 2026-01-02 04:34:25 +01:00
chore(server): fix typecheck
This commit is contained in:
parent
7c1175995f
commit
5cc2296768
@ -2,7 +2,6 @@ import { buildNote } from "../test/becca_easy_mocking";
|
||||
import { determineBestFontAttachment, generateCss, generateIconRegistry, IconPackManifest, processIconPack } from "./icon_packs";
|
||||
|
||||
const manifest: IconPackManifest = {
|
||||
prefix: "bx",
|
||||
icons: {
|
||||
"bx-ball": {
|
||||
glyph: "\ue9c2",
|
||||
@ -111,7 +110,6 @@ describe("Mapping attachments", () => {
|
||||
describe("CSS generation", () => {
|
||||
it("generates the CSS", () => {
|
||||
const manifest: IconPackManifest = {
|
||||
prefix: "bx",
|
||||
icons: {
|
||||
"bx-ball": {
|
||||
"glyph": "\ue9c2",
|
||||
@ -136,7 +134,7 @@ describe("CSS generation", () => {
|
||||
]
|
||||
}));
|
||||
expect(processedResult).toBeTruthy();
|
||||
const css = generateCss(processedResult!);
|
||||
const css = generateCss(processedResult!, `/api/attachments/${processedResult?.fontAttachmentId}/download`);
|
||||
|
||||
console.log(css);
|
||||
expect(css).toContain("@font-face");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user