mirror of
https://github.com/zadam/trilium.git
synced 2025-10-19 06:38:59 +02:00
test(collection/presentation): test empty slide
This commit is contained in:
parent
7e6231698c
commit
0c3d225379
@ -2,6 +2,7 @@ import { beforeAll, describe, expect, it } from "vitest";
|
||||
import { buildNote } from "../../../test/easy-froca";
|
||||
import FNote from "../../../entities/fnote";
|
||||
import { buildPresentationModel, PresentationModel } from "./model";
|
||||
import froca from "../../../services/froca";
|
||||
|
||||
let presentationNote!: FNote;
|
||||
let data!: PresentationModel;
|
||||
@ -59,4 +60,8 @@ describe("Presentation model", () => {
|
||||
]
|
||||
})
|
||||
});
|
||||
|
||||
it("empty slides don't render children", () => {
|
||||
expect(data.slides[0].content.__html).toStrictEqual("");
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user