Update the test case about API changes
This commit is contained in:
parent
b26da2eed6
commit
087eac626e
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue