From c84384e6608368a13a774d6d33a8cc32da7cf209 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Tue, 19 Jul 2022 15:21:17 +0200 Subject: [bugfix] html escape special characters in text instead of totally removing them (#719) * remove minify dependency * tidy up some tests * remove pre + postformat funcs * rework sanitization + formatting * update tests * add some more markdown tests --- internal/processing/account/update_test.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'internal/processing/account/update_test.go') diff --git a/internal/processing/account/update_test.go b/internal/processing/account/update_test.go index 582dc82e9..7e4ca818e 100644 --- a/internal/processing/account/update_test.go +++ b/internal/processing/account/update_test.go @@ -73,13 +73,12 @@ func (suite *AccountUpdateTestSuite) TestAccountUpdateSimple() { func (suite *AccountUpdateTestSuite) TestAccountUpdateWithMention() { testAccount := suite.testAccounts["local_account_1"] - locked := true - displayName := "new display name" - note := `#hello here i am! - -go check out @1happyturtle, they have a cool account! -` - noteExpected := `

#hello here i am!

go check out @1happyturtle, they have a cool account!

` + var ( + locked = true + displayName = "new display name" + note = "#hello here i am!\n\ngo check out @1happyturtle, they have a cool account!\n" + noteExpected = "

#hello here i am!

go check out @1happyturtle, they have a cool account!

" + ) form := &apimodel.UpdateCredentialsRequest{ DisplayName: &displayName, -- cgit v1.2.3