aboutsummaryrefslogtreecommitdiffstats
path: root/services/webhook/matrix_test.go
diff options
context:
space:
mode:
authorYehonatan Ezron <37303618+jonatan5524@users.noreply.github.com>2022-05-28 23:44:51 +0300
committerGitHub <noreply@github.com>2022-05-28 16:44:51 -0400
commitf2439b7e4c47de018e1678ceaa434e4b3d734a83 (patch)
tree6188e2814a7131b407d1f3efb2e3bde97c70a149 /services/webhook/matrix_test.go
parent65e0688a5c9dacad50e71024b7529fdf0e3c2e9c (diff)
downloadgitea-f2439b7e4c47de018e1678ceaa434e4b3d734a83.tar.gz
gitea-f2439b7e4c47de018e1678ceaa434e4b3d734a83.zip
fix(telegram): fix link bot to release tag (#19830)
* fix(telegram): fix link bot to release tag * test(webhook): fix matrixPayload Release * test(webhook): fix TestTelegramPayload Release
Diffstat (limited to 'services/webhook/matrix_test.go')
-rw-r--r--services/webhook/matrix_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/webhook/matrix_test.go b/services/webhook/matrix_test.go
index 3cc7c7518f..34196aedf0 100644
--- a/services/webhook/matrix_test.go
+++ b/services/webhook/matrix_test.go
@@ -165,8 +165,8 @@ func TestMatrixPayload(t *testing.T) {
require.NotNil(t, pl)
require.IsType(t, &MatrixPayloadUnsafe{}, pl)
- assert.Equal(t, "[[test/repo](http://localhost:3000/test/repo)] Release created: [v1.0](http://localhost:3000/test/repo/src/v1.0) by [user1](https://try.gitea.io/user1)", pl.(*MatrixPayloadUnsafe).Body)
- assert.Equal(t, `[<a href="http://localhost:3000/test/repo">test/repo</a>] Release created: <a href="http://localhost:3000/test/repo/src/v1.0">v1.0</a> by <a href="https://try.gitea.io/user1">user1</a>`, pl.(*MatrixPayloadUnsafe).FormattedBody)
+ assert.Equal(t, "[[test/repo](http://localhost:3000/test/repo)] Release created: [v1.0](http://localhost:3000/test/repo/releases/tag/v1.0) by [user1](https://try.gitea.io/user1)", pl.(*MatrixPayloadUnsafe).Body)
+ assert.Equal(t, `[<a href="http://localhost:3000/test/repo">test/repo</a>] Release created: <a href="http://localhost:3000/test/repo/releases/tag/v1.0">v1.0</a> by <a href="https://try.gitea.io/user1">user1</a>`, pl.(*MatrixPayloadUnsafe).FormattedBody)
})
}