Skip to content

Commit

Permalink
Fix tests for Swift 4
Browse files Browse the repository at this point in the history
  • Loading branch information
onevcat committed Dec 17, 2019
1 parent c000659 commit be51fc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/KingfisherTests/KingfisherManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ class KingfisherManagerTests: XCTestCase {
let fileURL = self.manager.cache.diskStorage.cacheFileURL(forKey: computedKey)
let data = try! Data(contentsOf: fileURL)
XCTAssertNotEqual(data, testImageJEPGData)
XCTAssertEqual(data, testImage.jpegData(compressionQuality: 0.8))
XCTAssertEqual(data, testImage.kf.jpegRepresentation(compressionQuality: 0.8))

exp.fulfill()
}
Expand Down

0 comments on commit be51fc2

Please sign in to comment.