diff options
Diffstat (limited to 'integrations/api_issue_reaction_test.go')
-rw-r--r-- | integrations/api_issue_reaction_test.go | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/integrations/api_issue_reaction_test.go b/integrations/api_issue_reaction_test.go index ab3de7c116..abbc6429fb 100644 --- a/integrations/api_issue_reaction_test.go +++ b/integrations/api_issue_reaction_test.go @@ -20,16 +20,14 @@ import ( func TestAPIAllowedReactions(t *testing.T) { defer prepareTestEnv(t)() - type allowed []string + a := new(api.GeneralUISettings) - a := new(allowed) - - req := NewRequest(t, "GET", "/api/v1/settings/allowed_reactions") + req := NewRequest(t, "GET", "/api/v1/settings/ui") resp := MakeRequest(t, req, http.StatusOK) DecodeJSON(t, resp, &a) - assert.Len(t, *a, len(setting.UI.Reactions)) - assert.ElementsMatch(t, setting.UI.Reactions, *a) + assert.Len(t, a.AllowedReactions, len(setting.UI.Reactions)) + assert.ElementsMatch(t, setting.UI.Reactions, a.AllowedReactions) } func TestAPIIssuesReactions(t *testing.T) { |