Update the test case again for checking non-blank image

This commit is contained in:
lizhuoli 2022-03-04 17:55:07 +08:00
parent 6dcbec2b87
commit 3eb553d251
1 changed files with 2 additions and 1 deletions

View File

@ -413,7 +413,8 @@
UIImage *decodedImage = [SDImageCoderHelper decodedImageWithImage:testImage];
expect(decodedImage).notTo.beNil();
UIColor *testColor = [decodedImage sd_colorAtPoint:CGPointMake(100, 100)];
expect([[testColor sd_hexString] isEqualToString:@"#ff0a64bf"]).beTruthy();
// Should not be black color
expect([[testColor sd_hexString] isEqualToString:UIColor.blackColor.sd_hexString]).beFalsy();
}
#pragma mark - Helper