test(collection/presentation): test empty slide

This commit is contained in:
Elian Doran 2025-10-18 15:34:40 +03:00
parent 7e6231698c
commit 0c3d225379
No known key found for this signature in database

View File

@ -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("");
});
});