Skip to content

Commit

Permalink
Merge pull request #677 from alexandear/fix/test-features-response-image
Browse files Browse the repository at this point in the history
fix: useless assertion in TestFeatures/response-image
  • Loading branch information
danielgtaylor authored Dec 12, 2024
2 parents 383b2ed + 44155a7 commit 5c03160
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 @@ -1661,7 +1661,7 @@ Content of example2.txt.

// Ensure the OpenAPI spec is correct.
assert.Len(t, api.OpenAPI().Paths["/response-image"].Get.Responses["200"].Content, 1)
assert.NotEmpty(t, "binary", api.OpenAPI().Paths["/response-image"].Get.Responses["200"].Content["image/png"])
assert.NotEmpty(t, api.OpenAPI().Paths["/response-image"].Get.Responses["200"].Content["image/png"])
},
Method: http.MethodGet,
URL: "/response-image",
Expand Down

0 comments on commit 5c03160

Please sign in to comment.