Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
core: fix coverage gate
Adorian Dorandea48abb6328
diff --git a/packages/commons/src/lib/notes.spec.ts b/packages/commons/src/lib/notes.spec.tsindex 1150961563..0ad5b45b49 100644--- a/packages/commons/src/lib/notes.spec.ts+++ b/packages/commons/src/lib/notes.spec.ts@@ -2,8 +2,8 @@ import { describe, expect, it } from "vitest";import {CALENDAR_EVENT_ICON, CANVAS_ATTACHMENT_MIME, GEO_LOCATION_ATTRIBUTE, GEO_SHAPE_ATTRIBUTE,- getAttachedFileMime, getContentRendererGroup, getImageAttachmentTitle, getMimeIcon,- getNoteContentType, getNoteIcon, isFullWidthNoteType,+ getAttachedFileMime, getContentRendererGroup, getDrawingPictureTitle,+ getImageAttachmentTitle, getMimeIcon, getNoteContentType, getNoteIcon, isFullWidthNoteType,MAP_POSITION_ATTRIBUTE, MAP_SHAPE_ATTRIBUTE, NOTE_TYPE_ICONS, NOTE_TYPE_IMAGE_ATTACHMENTS,parseMindMapNoteLink} from "./notes.js";@@ -66,6 +66,12 @@ describe("getImageAttachmentTitle", () => {});});+describe("getDrawingPictureTitle", () => {+ it("titles the picture of a canvas drawing after the attachment of the drawing", () => {+ expect(getDrawingPictureTitle("drawing1")).toBe("drawing1.svg");+ });+});+describe("getNoteIcon", () => {it("returns the explicit iconClass when provided", () => {const icon = getNoteIcon(buildArgs({ iconClass: "bx bx-custom", workspaceIconClass: "bx bx-ws" }));