Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Amol Prabhu committed Jun 21, 2024
1 parent 52835c4 commit 58afb18
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ class ImageThumbnailTest: XCTestCase {
let options = ImageRequest.ThumbnailOptions(size: CGSize(width: 320, height: 1000), unit: .pixels, contentMode: .aspectFit)
let output = try XCTUnwrap(options.makeThumbnail(with: input))

// Then the output thumbnail is rotated
// Then the output has orientation of the original image
XCTAssertEqual(output.imageOrientation, .right)
// Then the image is resized according to orientation

//verify size of the image in points and pixels (using scale)
XCTAssertEqual(output.sizeInPixels, CGSize(width: 320, height: 240))
//size with scale taken into accounts as this is in points
XCTAssertEqual(output.size, CGSize(width: 120, height: 160))
}
#endif
Expand Down

0 comments on commit 58afb18

Please sign in to comment.