mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
test(server): use becca mocking for single export test
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
import BNote from "../../becca/entities/bnote.js";
|
|
||||||
import { mapByNoteType } from "./single.js";
|
import { mapByNoteType } from "./single.js";
|
||||||
|
import { buildNote } from "../../test/becca_easy_mocking.js";
|
||||||
|
|
||||||
describe("Note type mappings", () => {
|
describe("Note type mappings", () => {
|
||||||
it("supports mermaid note", () => {
|
it("supports mermaid note", () => {
|
||||||
const note = new BNote({
|
const note = buildNote({
|
||||||
type: "mermaid",
|
type: "mermaid",
|
||||||
title: "New note"
|
title: "New note"
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user