Update the test case about API changes

This commit is contained in:
DreamPiggy 2021-02-23 16:19:55 +08:00
parent b26da2eed6
commit 087eac626e
2 changed files with 2 additions and 2 deletions

View File

@ -144,7 +144,7 @@ class AnimatedImageTests: XCTestCase {
let imageUrl = URL(string: "https://assets.sbnation.com/assets/2512203/dogflops.gif")
let imageView = AnimatedImage(url: imageUrl, options: [.progressiveLoad], context: [.imageScaleFactor: 1])
let introspectView = imageView
.onSuccess { _, _ in
.onSuccess { _, _, _ in
expectation.fulfill()
}
.onFailure { _ in

View File

@ -19,7 +19,7 @@ class ImageManagerTests: XCTestCase {
let expectation = self.expectation(description: "ImageManager usage with Combine")
let imageUrl = URL(string: "https://via.placeholder.com/500x500.jpg")
let imageManager = ImageManager(url: imageUrl)
imageManager.setOnSuccess { image, cacheType in
imageManager.setOnSuccess { image, cacheType, data in
XCTAssertNotNil(image)
expectation.fulfill()
}