From 555bf6338f2b0fb2e7b934f6da50b34dcb684c14 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Wed, 9 Nov 2022 22:55:27 +0530 Subject: [PATCH] fix test --- src/element/textWysiwyg.test.tsx | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/element/textWysiwyg.test.tsx b/src/element/textWysiwyg.test.tsx index 502ef9948..ab8416378 100644 --- a/src/element/textWysiwyg.test.tsx +++ b/src/element/textWysiwyg.test.tsx @@ -936,7 +936,29 @@ describe("textWysiwyg", () => { expect(rectangle.width).toBe(100); expect(rectangle.height).toBe(210); const textElement = h.elements[1] as ExcalidrawTextElement; - expect(textElement.text).toBe(wrappedText); + expect(textElement.text).toMatchInlineSnapshot( + ` + "Wikipedi + a is + hosted + by the + Wikimedi + a + Foundati + on, a + non-prof + it + organiza + tion + that + also + hosts a + range of + other + projects + ." + `, + ); }); }); });