summaryrefslogtreecommitdiffstats
path: root/services/webhook/matrix_test.go
diff options
context:
space:
mode:
authorAkshay Mankar <itsakshaymankar@gmail.com>2022-10-07 23:06:34 +0200
committerGitHub <noreply@github.com>2022-10-07 22:06:34 +0100
commitf0aed8205b28d984698414d32635b66927ea6ca0 (patch)
tree92811e09be4534349e634b5a57b41ad842629388 /services/webhook/matrix_test.go
parent223556073c51b34f2ccca7c1036552a4807d1f42 (diff)
downloadgitea-f0aed8205b28d984698414d32635b66927ea6ca0.tar.gz
gitea-f0aed8205b28d984698414d32635b66927ea6ca0.zip
Fix formatted link for PR review notifications to matrix (#21319)
The PR review notifications HTML was written as markdown due to not using `MatrixLinkFormatter`.
Diffstat (limited to 'services/webhook/matrix_test.go')
-rw-r--r--services/webhook/matrix_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/webhook/matrix_test.go b/services/webhook/matrix_test.go
index 4cab845330..624986ee9b 100644
--- a/services/webhook/matrix_test.go
+++ b/services/webhook/matrix_test.go
@@ -140,7 +140,7 @@ func TestMatrixPayload(t *testing.T) {
require.IsType(t, &MatrixPayloadUnsafe{}, pl)
assert.Equal(t, "[[test/repo](http://localhost:3000/test/repo)] Pull request review approved: [#12 Fix bug](http://localhost:3000/test/repo/pulls/12) by [user1](https://try.gitea.io/user1)", pl.(*MatrixPayloadUnsafe).Body)
- assert.Equal(t, `[<a href="http://localhost:3000/test/repo">test/repo</a>] Pull request review approved: [#12 Fix bug](http://localhost:3000/test/repo/pulls/12) by <a href="https://try.gitea.io/user1">user1</a>`, pl.(*MatrixPayloadUnsafe).FormattedBody)
+ assert.Equal(t, `[<a href="http://localhost:3000/test/repo">test/repo</a>] Pull request review approved: <a href="http://localhost:3000/test/repo/pulls/12">#12 Fix bug</a> by <a href="https://try.gitea.io/user1">user1</a>`, pl.(*MatrixPayloadUnsafe).FormattedBody)
})
t.Run("Repository", func(t *testing.T) {