Skip to content

Commit 087eac6

Browse files
committed
Update the test case about API changes
1 parent b26da2e commit 087eac6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/AnimatedImageTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ class AnimatedImageTests: XCTestCase {
144144
let imageUrl = URL(string: "https://assets.sbnation.com/assets/2512203/dogflops.gif")
145145
let imageView = AnimatedImage(url: imageUrl, options: [.progressiveLoad], context: [.imageScaleFactor: 1])
146146
let introspectView = imageView
147-
.onSuccess { _, _ in
147+
.onSuccess { _, _, _ in
148148
expectation.fulfill()
149149
}
150150
.onFailure { _ in

Tests/ImageManagerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ImageManagerTests: XCTestCase {
1919
let expectation = self.expectation(description: "ImageManager usage with Combine")
2020
let imageUrl = URL(string: "https://via.placeholder.com/500x500.jpg")
2121
let imageManager = ImageManager(url: imageUrl)
22-
imageManager.setOnSuccess { image, cacheType in
22+
imageManager.setOnSuccess { image, cacheType, data in
2323
XCTAssertNotNil(image)
2424
expectation.fulfill()
2525
}

0 commit comments

Comments
 (0)