diff --git a/apps/client/src/widgets/collections/presentation/model.spec.ts b/apps/client/src/widgets/collections/presentation/model.spec.ts index 7f63d8a42..e5b5b49b6 100644 --- a/apps/client/src/widgets/collections/presentation/model.spec.ts +++ b/apps/client/src/widgets/collections/presentation/model.spec.ts @@ -19,7 +19,8 @@ describe("Presentation model", () => { children: [ { id: "slide2", - title: "First-sub" + title: "First-sub", + content: `

Go to Other note.

` } ] }, @@ -37,6 +38,10 @@ describe("Presentation model", () => { } ] }); + buildNote({ + id: "other", + title: "Other note" + }); data = await buildPresentationModel(presentationNote); }); @@ -68,11 +73,11 @@ describe("Presentation model", () => { }); it("rewrites links to other slides", () => { - expect(data.slides[1].content.__html).toStrictEqual(`

Go to First slide.

`); - expect(data.slides[1].verticalSlides![0].content.__html).toStrictEqual(`

Go to First-sub.

`); + expect(data.slides[1].content.__html).toStrictEqual(`

Go to First slide.

`); + expect(data.slides[1].verticalSlides![0].content.__html).toStrictEqual(`

Go to First-sub.

`); }); - it("doesn't rewrite links if they are not part of the slideshow", () => { - + it("rewrites links even if they are not part of the slideshow", () => { + expect(data.slides[0].verticalSlides![0].content.__html).toStrictEqual(`

Go to Other note.

`); }); });