We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3363162 commit f56c39aCopy full SHA for f56c39a
Tests/WebImageTests.swift
@@ -110,7 +110,11 @@ class WebImageTests: XCTestCase {
110
let expectation = self.expectation(description: "WebImage onSuccess when memory hit")
111
let imageUrl = URL(string: "https://foo.bar/buzz.png")
112
let cacheKey = SDWebImageManager.shared.cacheKey(for: imageUrl)
113
+ #if os(macOS)
114
+ let testImage = TestUtils.testImageBundle().image(forResource: "TestImage")
115
+ #else
116
let testImage = UIImage(named: "TestImage", in: TestUtils.testImageBundle(), compatibleWith: nil)
117
+ #endif
118
SDImageCache.shared.storeImage(toMemory: testImage, forKey: cacheKey)
119
let imageView = WebImage(url: imageUrl)
120
let introspectView = imageView.onSuccess { image, cacheType in
0 commit comments