Skip to content

Commit

Permalink
fix(linter): use assert.Len
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Dec 5, 2024
1 parent ba685ef commit e3e4560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion huma_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,7 @@ func TestContentTypeFilter(t *testing.T) {
})

responses := api.OpenAPI().Paths["/ct-filter"].Get.Responses["200"].Content
assert.Equal(t, 1, len(responses))
assert.Len(t, responses, 1)
for k := range responses {
assert.Equal(t, "application/custom+json", k)
}
Expand Down

0 comments on commit e3e4560

Please sign in to comment.