Skip to content

Commit

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

0 comments on commit ebb7c19

Please sign in to comment.