From e1c4b452e6cf3616c3882890997334cd31d9b0a0 Mon Sep 17 00:00:00 2001 From: Meisam <39205857+MFTabriz@users.noreply.github.com> Date: Fri, 23 Jul 2021 20:01:30 +0200 Subject: [PATCH] test emoji title and alt tag sanitization (#1244) --- core/chat/messageRendering_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/chat/messageRendering_test.go b/core/chat/messageRendering_test.go index 6a740f8cb..b0e0c2e4a 100644 --- a/core/chat/messageRendering_test.go +++ b/core/chat/messageRendering_test.go @@ -44,8 +44,8 @@ func TestBlockRemoteImages(t *testing.T) { // Test to make sure emoji images are allowed in chat messages. func TestAllowEmojiImages(t *testing.T) { - messageContent := ` test ![](/img/emoji/beerparrot.gif)` - expected := `

test

` + messageContent := `:beerparrot: test ![](/img/emoji/beerparrot.gif)` + expected := `

:beerparrot: test

` result := events.RenderAndSanitize(messageContent) if result != expected {