mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-26 09:31:34 +08:00
18 lines
487 B
TypeScript
18 lines
487 B
TypeScript
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"
|
|
});
|
|
});
|
|
});
|