From c5d56b3acf38df3fe52ee2eff8499e40daf3b022 Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Thu, 5 Mar 2026 21:53:36 +0000 Subject: [PATCH] prettier --- apps/web/test/unit-tests/HtmlUtils-test.tsx | 4 +++- .../views/messages/TextualBody-test.tsx | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/apps/web/test/unit-tests/HtmlUtils-test.tsx b/apps/web/test/unit-tests/HtmlUtils-test.tsx index 183395b98b..2201e73ed8 100644 --- a/apps/web/test/unit-tests/HtmlUtils-test.tsx +++ b/apps/web/test/unit-tests/HtmlUtils-test.tsx @@ -100,7 +100,9 @@ describe("bodyToHtml", () => { }, ); - expect(html).toMatchInlineSnapshot(`"foo http://link.example/test/path bar"`); + expect(html).toMatchInlineSnapshot( + `"foo http://link.example/test/path bar"`, + ); }); it("should hightlight parts of links in HTML message highlighting", () => { diff --git a/apps/web/test/unit-tests/components/views/messages/TextualBody-test.tsx b/apps/web/test/unit-tests/components/views/messages/TextualBody-test.tsx index ee59aff669..7f78a0daf3 100644 --- a/apps/web/test/unit-tests/components/views/messages/TextualBody-test.tsx +++ b/apps/web/test/unit-tests/components/views/messages/TextualBody-test.tsx @@ -187,28 +187,36 @@ describe("", () => { const ev = mkRoomTextMessage("Chat with @user:example.com"); const { container } = getComponent({ mxEvent: ev }); const content = container.querySelector(".mx_EventTile_body"); - expect(content.innerHTML).toMatchInlineSnapshot(`"Chat with @user:example.com"`); + expect(content.innerHTML).toMatchInlineSnapshot( + `"Chat with @user:example.com"`, + ); }); it("should pillify an MXID permalink", () => { const ev = mkRoomTextMessage("Chat with https://matrix.to/#/@user:example.com"); const { container } = getComponent({ mxEvent: ev }); const content = container.querySelector(".mx_EventTile_body"); - expect(content.innerHTML).toMatchInlineSnapshot(`"Chat with Member"`); + expect(content.innerHTML).toMatchInlineSnapshot( + `"Chat with Member"`, + ); }); it("should not pillify room aliases", () => { const ev = mkRoomTextMessage("Visit #room:example.com"); const { container } = getComponent({ mxEvent: ev }); const content = container.querySelector(".mx_EventTile_body"); - expect(content.innerHTML).toMatchInlineSnapshot(`"Visit #room:example.com"`); + expect(content.innerHTML).toMatchInlineSnapshot( + `"Visit #room:example.com"`, + ); }); it("should pillify a room alias permalink", () => { const ev = mkRoomTextMessage("Visit https://matrix.to/#/#room:example.com"); const { container } = getComponent({ mxEvent: ev }); const content = container.querySelector(".mx_EventTile_body"); - expect(content.innerHTML).toMatchInlineSnapshot(`"Visit #room:example.com"`); + expect(content.innerHTML).toMatchInlineSnapshot( + `"Visit #room:example.com"`, + ); }); it("should pillify a permalink to a message in the same room with the label »Message from Member«", () => {