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 3b23c34 commit 05a70ddCopy full SHA for 05a70dd
Tests/RemoteImageTests/Services/DefaultRemoteImageCacheTests.swift
@@ -22,7 +22,17 @@ final class DefaultRemoteImageCacheTests: XCTestCase {
22
XCTAssertEqual(remoteImageCache.object(forKey: key), image)
23
}
24
25
+ func testRemoveImage() {
26
+ let key = "Test" as NSString
27
+ let image = PlatformSpecificImageType()
28
+ remoteImageCache.setObject(image, forKey: key)
29
+ XCTAssertEqual(remoteImageCache.object(forKey: key), image)
30
+ remoteImageCache.removeObject(forKey: key)
31
+ XCTAssertNil(remoteImageCache.object(forKey: key))
32
+ }
33
+
34
static var allTests = [
- ("testSetImage", testSetImage)
35
+ ("testSetImage", testSetImage),
36
+ ("testRemoveImage", testRemoveImage)
37
]
38
0 commit comments