-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from alexandergottlieb/master
parse RssItem.pubDate to DateTime
- Loading branch information
Showing
3 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,7 +72,7 @@ void main() { | |
"Lorem ipsum dolor sit amet, consectetur adipiscing elit"); | ||
expect(feed.items.first.link, "https://foo.bar.news/1"); | ||
expect(feed.items.first.guid, "https://foo.bar.news/1?guid"); | ||
expect(feed.items.first.pubDate, "Mon, 26 Mar 2018 14:00:00 PDT"); | ||
expect(feed.items.first.pubDate, DateTime(2018, 03, 26, 14)); //Mon, 26 Mar 2018 14:00:00 PDT | ||
expect(feed.items.first.categories.first.domain, "news"); | ||
expect(feed.items.first.categories.first.value, "Lorem"); | ||
expect(feed.items.first.author, "[email protected]"); | ||
|
@@ -102,7 +102,7 @@ void main() { | |
var item = feed.items.first; | ||
expect(item.title, null); | ||
expect(item.link, "http://www.foo.com"); | ||
expect(item.pubDate, "Mon, 27 Aug 2001 16:08:56 PST"); | ||
expect(item.pubDate, DateTime(2001, 08, 27, 16, 08, 56)); //Mon, 27 Aug 2001 16:08:56 PST | ||
|
||
expect(item.media.group.contents.length, 5); | ||
expect(item.media.group.credits.length, 2); | ||
|