Skip to content

Commit

Permalink
Test for comment length
Browse files Browse the repository at this point in the history
  • Loading branch information
prymitive committed Jul 17, 2024
1 parent ed582ef commit c3bb3a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/reporter/bitbucket_comments_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (

"github.com/google/go-cmp/cmp"
"github.com/neilotoole/slogt"
"github.com/stretchr/testify/require"

"github.com/cloudflare/pint/internal/checks"
"github.com/cloudflare/pint/internal/discovery"
Expand Down Expand Up @@ -627,6 +628,9 @@ func TestBitBucketMakeComments(t *testing.T) {
t.Errorf("api.makeComments() returned wrong output (-want +got):\n%s", diff)
return
}
for _, comment := range comments {
require.LessOrEqual(t, len(comment.Text), maxCommentLength)
}
})
}
}

0 comments on commit c3bb3a7

Please sign in to comment.