Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
incoporating review changes

Co-authored-by: Adam Kaplan <[email protected]>
  • Loading branch information
ayushsatyam146 and adambkaplan authored May 3, 2024
1 parent 8f57b3b commit 0531353
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/common/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ func TestTruncateCRDFieldTransformer(t *testing.T) {
err = yaml.Unmarshal(testData, u)
Expect(err).NotTo(HaveOccurred())

TruncateCRDFieldTransformer("description", 10)(u)
isDscriptionTruncated := CheckNestedFieldLengthWithinLimit(u.Object, 10, "description")
Expect(isDscriptionTruncated).To(Equal(true))
transformFunc := TruncateCRDFieldTransformer("description", 10)
transformFunc(u)
isDescriptionTruncated := CheckNestedFieldLengthWithinLimit(u.Object, 10, "description")
Expect(isDescriptionTruncated).To(Equal(true))
})
}

Expand Down

0 comments on commit 0531353

Please sign in to comment.