Skip to content

Commit

Permalink
Fix ModelTests failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
GetToSet committed May 25, 2022
1 parent d94f474 commit 4e0ebce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion DoughnutTests/ModelTests/PodcastModelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ final class PodcastModelTests: ModelTestCase {
XCTAssertEqual(podcast.language, "en-us")
XCTAssertEqual(podcast.copyright, "© 2017 Chris Dyer")
XCTAssertEqual(podcast.pubDate, dateFormatter.date(from: "2017-09-25T23:30:07Z"))
XCTAssertEqual(podcast.image?.size, CGSize(width: 100, height: 100))

let imageRepresentation = podcast.image?.representations.first
XCTAssertNotNil(imageRepresentation)
XCTAssertEqual(imageRepresentation?.pixelsHigh, 100)
XCTAssertEqual(imageRepresentation?.pixelsWide, 100)

XCTAssertEqual(podcast.imageUrl, "http://localhost/image.jpg")
XCTAssertEqual(podcast.lastParsed, dateFormatter.date(from: "2022-03-20T08:09:09Z"))
XCTAssertEqual(podcast.subscribedAt, dateFormatter.date(from: "2022-03-20T08:09:09Z"))
Expand Down

0 comments on commit 4e0ebce

Please sign in to comment.