mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
chore(server): fix tests
This commit is contained in:
parent
290d134d88
commit
c0ea441c59
@ -1,9 +1,18 @@
|
||||
import { describe, it, expect } from "vitest";
|
||||
import { getContent, renderCode, renderText, type Result } from "./content_renderer.js";
|
||||
import { getContent, renderCode, type Result } from "./content_renderer.js";
|
||||
import { trimIndentation } from "@triliumnext/commons";
|
||||
import { buildShareNote, buildShareNotes } from "../test/shaca_mocking.js";
|
||||
|
||||
describe("content_renderer", () => {
|
||||
beforeAll(() => {
|
||||
vi.mock("../becca/becca_loader.js", () => ({
|
||||
default: {
|
||||
load: vi.fn(),
|
||||
loaded: Promise.resolve()
|
||||
}
|
||||
}));
|
||||
});
|
||||
|
||||
it("Reports protected notes not being renderable", () => {
|
||||
const note = buildShareNote({ isProtected: true });
|
||||
const result = getContent(note);
|
||||
|
Loading…
x
Reference in New Issue
Block a user