mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 07:34:09 +01:00
Fix old test compile errors
This commit is contained in:
parent
95a8f6d72d
commit
ce33184502
@ -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}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user