From 544dcf651d91bc96d7c4ba2b666f9ab21933ca82 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Thu, 16 May 2024 08:38:28 -0700 Subject: [PATCH] Move FeedlyEntryParserTests to Feedly module. --- .../Tests/FeedlyTests}/FeedlyEntryParserTests.swift | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename {Account/Tests/AccountTests/Feedly => Feedly/Tests/FeedlyTests}/FeedlyEntryParserTests.swift (95%) diff --git a/Account/Tests/AccountTests/Feedly/FeedlyEntryParserTests.swift b/Feedly/Tests/FeedlyTests/FeedlyEntryParserTests.swift similarity index 95% rename from Account/Tests/AccountTests/Feedly/FeedlyEntryParserTests.swift rename to Feedly/Tests/FeedlyTests/FeedlyEntryParserTests.swift index ac5548c34..25a10c179 100644 --- a/Account/Tests/AccountTests/Feedly/FeedlyEntryParserTests.swift +++ b/Feedly/Tests/FeedlyTests/FeedlyEntryParserTests.swift @@ -7,14 +7,14 @@ // import XCTest -@testable import Account +@testable import Feedly + +final class FeedlyEntryParserTests: XCTestCase { -class FeedlyEntryParserTests: XCTestCase { - func testParsing() { let content = FeedlyEntry.Content(content: "Test Content", direction: .leftToRight) let summary = FeedlyEntry.Content(content: "Test Summary", direction: .leftToRight) - let origin = FeedlyOrigin(title: "Test Feed", streamId: "tests://feeds/1", htmlUrl: nil) + let origin = FeedlyOrigin(title: "Test Feed", streamID: "tests://feeds/1", htmlURL: nil) let canonicalLink = FeedlyLink(href: "tests://feeds/1/entries/1", type: "text/html") let tags = [ FeedlyTag(id: "tests/tags/1", label: "Tag 1"), @@ -43,7 +43,7 @@ class FeedlyEntryParserTests: XCTestCase { XCTAssertEqual(parser.title, entry.title) XCTAssertEqual(parser.contentHMTL, content.content) XCTAssertEqual(parser.summary, summary.content) - XCTAssertEqual(parser.datePublished, .distantPast) + XCTAssertEqual(parser.datePublished, Date.distantPast) XCTAssertEqual(parser.dateModified, Date(timeIntervalSinceReferenceDate: 0)) guard let item = parser.parsedItemRepresentation else { @@ -76,7 +76,7 @@ class FeedlyEntryParserTests: XCTestCase { let content = FeedlyEntry.Content(content: "
Test Content
", direction: .rightToLeft) let summaryContent = "Test Summary" let summary = FeedlyEntry.Content(content: "
\(summaryContent)
", direction: .rightToLeft) - let origin = FeedlyOrigin(title: "Test Feed", streamId: "tests://feeds/1", htmlUrl: nil) + let origin = FeedlyOrigin(title: "Test Feed", streamID: "tests://feeds/1", htmlURL: nil) let title = "Test Entry 1" let entry = FeedlyEntry(id: "tests/feeds/1/entries/1", title: "
\(title)
",