Skip to content

Commit

Permalink
Fix loading image test
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu committed Mar 9, 2024
1 parent 8294b44 commit 7e3bb33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tests/NukeExtensionsTests/ImageViewIntegrationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class ImageViewIntegrationTests: XCTestCase {
// WHEN
let expectation = self.expectation(description: "Image loaded")
NukeExtensions.loadImage(with: URL(string: "http://example.com/invalid url"), into: imageView) { result in
XCTAssertEqual(result.error, .imageRequestMissing)
// THEN
XCTAssertNotNil(result.error?.dataLoadingError)
expectation.fulfill()
}
wait()
Expand Down

0 comments on commit 7e3bb33

Please sign in to comment.