Explorar o código

Fix tests for macOS

onevcat %!s(int64=3) %!d(string=hai) anos
pai
achega
21f1030858
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Tests/KingfisherTests/ImageViewExtensionTests.swift

+ 2 - 2
Tests/KingfisherTests/ImageViewExtensionTests.swift

@@ -501,12 +501,12 @@ class ImageViewExtensionTests: XCTestCase {
         imageView.kf.setImage(with: url) { result in
         imageView.kf.setImage(with: url) { result in
             let fullImage = result.value?.image
             let fullImage = result.value?.image
             XCTAssertNotNil(fullImage)
             XCTAssertNotNil(fullImage)
-            XCTAssertEqual(fullImage?.images?.count, 8)
+            XCTAssertEqual(fullImage!.kf.images?.count, 8)
             
             
             self.imageView.kf.setImage(with: url, options: [.onlyLoadFirstFrame]) { result in
             self.imageView.kf.setImage(with: url, options: [.onlyLoadFirstFrame]) { result in
                 let firstFrameImage = result.value?.image
                 let firstFrameImage = result.value?.image
                 XCTAssertNotNil(firstFrameImage)
                 XCTAssertNotNil(firstFrameImage)
-                XCTAssertNil(firstFrameImage?.images)
+                XCTAssertNil(firstFrameImage!.kf.images)
                 exp.fulfill()
                 exp.fulfill()
             }
             }
         }
         }