Update the test for sync version API as well

This commit is contained in:
DreamPiggy 2021-05-21 15:13:07 +08:00
parent 04c07f983f
commit e83b76946a
1 changed files with 4 additions and 0 deletions

View File

@ -388,6 +388,10 @@ static NSString *kTestImageKeyPNG = @"TestImageKey.png";
}];
}];
// Test sync version API `imageFromCacheForKey` as well
expect([SDImageCache.sharedImageCache imageFromCacheForKey:kAnimatedImageKey options:SDImageCacheMatchAnimatedImageClass context:@{SDWebImageContextAnimatedImageClass : SDAnimatedImage.class}]).beNil();
expect([SDImageCache.sharedImageCache imageFromCacheForKey:kAnimatedImageKey options:0 context:@{SDWebImageContextAnimatedImageClass : SDAnimatedImage.class}]).notTo.beNil();
[self waitForExpectationsWithCommonTimeout];
}