aboutsummaryrefslogtreecommitdiffstats
path: root/models/webhook_test.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-11-04 06:13:25 +0800
committerzeripath <art27@cantab.net>2019-11-03 22:13:25 +0000
commita966a0298ea1a545c383541ca4e72c61de1ed59e (patch)
tree95e327a9c8df47f1c343f8bad210ae6cdd208483 /models/webhook_test.go
parent491887d44132b8103ed0d753f95ecd43d600adba (diff)
downloadgitea-a966a0298ea1a545c383541ca4e72c61de1ed59e.tar.gz
gitea-a966a0298ea1a545c383541ca4e72c61de1ed59e.zip
Move more webhook codes from models to webhook module (#8802)
* Move more webhook codes from models to webhook module
Diffstat (limited to 'models/webhook_test.go')
-rw-r--r--models/webhook_test.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/models/webhook_test.go b/models/webhook_test.go
index 7bdaadc5ae..0fd9b245ca 100644
--- a/models/webhook_test.go
+++ b/models/webhook_test.go
@@ -24,18 +24,6 @@ func TestIsValidHookContentType(t *testing.T) {
assert.False(t, IsValidHookContentType("invalid"))
}
-func TestWebhook_GetSlackHook(t *testing.T) {
- w := &Webhook{
- Meta: `{"channel": "foo", "username": "username", "color": "blue"}`,
- }
- slackHook := w.GetSlackHook()
- assert.Equal(t, *slackHook, SlackMeta{
- Channel: "foo",
- Username: "username",
- Color: "blue",
- })
-}
-
func TestWebhook_History(t *testing.T) {
assert.NoError(t, PrepareTestDatabase())
webhook := AssertExistsAndLoadBean(t, &Webhook{ID: 1}).(*Webhook)