Fix old test compile errors

This commit is contained in:
Maurice Parker 2020-07-10 15:51:58 -05:00
parent 95a8f6d72d
commit ce33184502
2 changed files with 17 additions and 3 deletions

View File

@ -1,7 +1,7 @@
-- this script just tests that no error was generated from the script
try
tell application "NetNewsWire"
title of every article of feed "Six Colors" where read is true
title of every article of webFeed "Six Colors" where read is true
end tell
on error message
return {test_result:false, script_result:message}

View File

@ -39,8 +39,22 @@ class SharingTests: XCTestCase {
private func article(titled title: String) -> Article {
let articleId = randomId()
return Article(accountID: randomId(), articleID: articleId, webFeedID: randomId(), uniqueID: randomId(), title: title, contentHTML: nil, contentText: nil, url: nil, externalURL: nil, summary: nil, imageURL: nil, bannerImageURL: nil, datePublished: nil, dateModified: nil, authors: nil, attachments: nil, status: ArticleStatus(articleID: articleId, read: true, dateArrived: Date())
)
return Article(accountID: randomId(),
articleID: articleId,
webFeedID: randomId(),
uniqueID: randomId(),
title: title,
contentHTML: nil,
contentText: nil,
url: nil,
externalURL: nil,
summary: nil,
imageURL: nil,
datePublished: nil,
dateModified: nil,
authors: nil,
status: ArticleStatus(articleID: articleId, read: true, dateArrived: Date())
)
}
private func randomId() -> String {