Update the test case to ensure thi silly problem will not occur again :)

This commit is contained in:
DreamPiggy 2020-04-30 18:54:12 +08:00
parent 4173f9f3c1
commit 974c3ff4ad
1 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,10 @@
operation = token.downloadOperation;
expect([operation class]).to.equal([SDWebImageTestDownloadOperation class]);
// Assert the NSOperation conforms to `SDWebImageOperation`
expect([NSOperation.class conformsToProtocol:@protocol(SDWebImageOperation)]).beTruthy();
expect([operation conformsToProtocol:@protocol(SDWebImageOperation)]).beTruthy();
// back to the original value
downloader.config.operationClass = nil;
token = [downloader downloadImageWithURL:imageURL3 options:0 progress:nil completed:nil];