Skip to content

Commit dbee182

Browse files
committed
Updated download image test
1 parent 585f98e commit dbee182

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/SwiftHttpTests/DownloadTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ final class DownloadTests: XCTestCase {
1616

1717
func testDownload() async throws {
1818
let data = try await api.download()
19-
XCTAssertFalse(data.isEmpty)
19+
let filePath = String(data: data, encoding: .utf8)
20+
XCTAssertFalse(filePath == nil)
2021
}
2122
}

0 commit comments

Comments
 (0)