chore(monorepo/server): move server-side source code

This commit is contained in:
Elian Doran
2025-04-18 12:09:56 +03:00
parent da41b95d36
commit 5058891af8
892 changed files with 1478 additions and 298 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"
});
});
});