Fix the test case naming and documentation

This commit is contained in:
DreamPiggy 2019-10-16 17:04:03 +08:00
parent 34e736375e
commit 5aab84df90
2 changed files with 3 additions and 3 deletions

View File

@ -19,8 +19,8 @@ We can use a block to specify the downloader decryptor. But Using protocol can m
/// Decrypt the original download data and return a new data. You can use this to decrypt the data using your perfereed algorithm.
/// @param data The original download data
/// @param response The URL response for data. If you modifiy the original URL response via response modifier, the modified version will be here . This arg is nullable.
/// @note If nil is returned, the image download will marked as failed with error `SDWebImageErrorBadImageData`
/// @param response The URL response for data. If you modifiy the original URL response via response modifier, the modified version will be here. This arg is nullable.
/// @note If nil is returned, the image download will be marked as failed with error `SDWebImageErrorBadImageData`
- (nullable NSData *)decryptedDataWithData:(nonnull NSData *)data response:(nullable NSURLResponse *)response;
@end

View File

@ -543,7 +543,7 @@
[self waitForExpectationsWithCommonTimeout];
}
- (void)test24ThatDownloadRequestModifierWorks {
- (void)test24ThatDownloadResponseModifierWorks {
XCTestExpectation *expectation1 = [self expectationWithDescription:@"Download response modifier for webURL"];
XCTestExpectation *expectation2 = [self expectationWithDescription:@"Download response modifier invalid response"];