mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-01-03 13:30:14 +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
|
-- this script just tests that no error was generated from the script
|
||||||
try
|
try
|
||||||
tell application "NetNewsWire"
|
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
|
end tell
|
||||||
on error message
|
on error message
|
||||||
return {test_result:false, script_result:message}
|
return {test_result:false, script_result:message}
|
||||||
|
@ -39,7 +39,21 @@ class SharingTests: XCTestCase {
|
|||||||
|
|
||||||
private func article(titled title: String) -> Article {
|
private func article(titled title: String) -> Article {
|
||||||
let articleId = randomId()
|
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())
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user