Skip to content

Commit

Permalink
use ElementsMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jun 3, 2020
1 parent a0f06d5 commit 68b8b45
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions integrations/api_issue_reaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@ func TestAPIAllowedReactions(t *testing.T) {

DecodeJSON(t, resp, &a)
assert.Len(t, *a, len(setting.UI.Reactions))

for _, r := range *a {
assert.True(t, setting.UI.ReactionsMap[r])
}
assert.ElementsMatch(t, setting.UI.Reactions, *a)
}

func TestAPIIssuesReactions(t *testing.T) {
Expand Down

0 comments on commit 68b8b45

Please sign in to comment.