aboutsummaryrefslogtreecommitdiffstats
path: root/services/webhook/slack_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/webhook/slack_test.go')
-rw-r--r--services/webhook/slack_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/webhook/slack_test.go b/services/webhook/slack_test.go
index db97b351c5..d9828f374f 100644
--- a/services/webhook/slack_test.go
+++ b/services/webhook/slack_test.go
@@ -6,8 +6,8 @@ package webhook
import (
"testing"
- webhook_model "code.gitea.io/gitea/models/webhook"
api "code.gitea.io/gitea/modules/structs"
+ webhook_module "code.gitea.io/gitea/modules/webhook"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -124,7 +124,7 @@ func TestSlackPayload(t *testing.T) {
p.Action = api.HookIssueReviewed
d := new(SlackPayload)
- pl, err := d.Review(p, webhook_model.HookEventPullRequestReviewApproved)
+ pl, err := d.Review(p, webhook_module.HookEventPullRequestReviewApproved)
require.NoError(t, err)
require.NotNil(t, pl)
require.IsType(t, &SlackPayload{}, pl)