Skip to content

Commit 68b8b45

Browse files
committed
use ElementsMatch
1 parent a0f06d5 commit 68b8b45

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

integrations/api_issue_reaction_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ func TestAPIAllowedReactions(t *testing.T) {
2929

3030
DecodeJSON(t, resp, &a)
3131
assert.Len(t, *a, len(setting.UI.Reactions))
32-
33-
for _, r := range *a {
34-
assert.True(t, setting.UI.ReactionsMap[r])
35-
}
32+
assert.ElementsMatch(t, setting.UI.Reactions, *a)
3633
}
3734

3835
func TestAPIIssuesReactions(t *testing.T) {

0 commit comments

Comments
 (0)