Skip to content

Commit

Permalink
Fix tests for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed May 8, 2022
1 parent 2feff08 commit 21f1030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/KingfisherTests/ImageViewExtensionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -501,12 +501,12 @@ class ImageViewExtensionTests: XCTestCase {
imageView.kf.setImage(with: url) { result in
let fullImage = result.value?.image
XCTAssertNotNil(fullImage)
XCTAssertEqual(fullImage?.images?.count, 8)
XCTAssertEqual(fullImage!.kf.images?.count, 8)

self.imageView.kf.setImage(with: url, options: [.onlyLoadFirstFrame]) { result in
let firstFrameImage = result.value?.image
XCTAssertNotNil(firstFrameImage)
XCTAssertNil(firstFrameImage?.images)
XCTAssertNil(firstFrameImage!.kf.images)
exp.fulfill()
}
}
Expand Down

0 comments on commit 21f1030

Please sign in to comment.