mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
chore(nx/server): move source code
This commit is contained in:
17
apps/server/src/services/export/single.spec.ts
Normal file
17
apps/server/src/services/export/single.spec.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import BNote from "../../becca/entities/bnote.js";
|
||||
import { mapByNoteType } from "./single.js";
|
||||
|
||||
describe("Note type mappings", () => {
|
||||
it("supports mermaid note", () => {
|
||||
const note = new BNote({
|
||||
type: "mermaid",
|
||||
title: "New note"
|
||||
});
|
||||
|
||||
expect(mapByNoteType(note, "", "html")).toMatchObject({
|
||||
extension: "mermaid",
|
||||
mime: "text/vnd.mermaid"
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user