Skip to content

Commit

Permalink
fix: linter feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgtaylor committed Oct 31, 2024
1 parent 949ecbe commit 829f720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions huma_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ func TestFeatures(t *testing.T) {
}
}) (*struct{}, error) {
assert.EqualValues(t, "Huma", *input.Body.Name)
assert.EqualValues(t, true, *input.Body.Enabled)
assert.True(t, *input.Body.Enabled)
assert.EqualValues(t, []*string{Ptr("foo"), Ptr("bar")}, input.Body.Tags)
assert.EqualValues(t, []*int{Ptr(1), Ptr(2), Ptr(3)}, input.Body.Numbers)
assert.Equal(t, 1, input.Body.Items[0].ID)
Expand Down Expand Up @@ -697,7 +697,7 @@ func TestFeatures(t *testing.T) {
}) (*struct{}, error) {
// Ensure we can send the zero value and it doesn't get overridden.
assert.EqualValues(t, "", *input.Body.Name)
assert.EqualValues(t, false, *input.Body.Enabled)
assert.False(t, *input.Body.Enabled)
assert.Equal(t, 1, input.Body.Items[0].ID)
assert.False(t, *input.Body.Items[0].Verified)
return nil, nil
Expand Down

0 comments on commit 829f720

Please sign in to comment.