chore(nx/server): move source code

This commit is contained in:
Elian Doran
2025-04-22 17:16:41 +03:00
parent 9c0d42252e
commit b2af043110
889 changed files with 10 additions and 30 deletions

View 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"
});
});
});