-
Notifications
You must be signed in to change notification settings - Fork 777
Cass N - Guardian Digest (partial solution) #485
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… style, client and view methods constructed
… view displayArticles method built
mirandaweston
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clean, readable code with clear variable names and structure. Love the addition of CSS, would just suggest more exhaustive test coverage.
| @@ -0,0 +1,44 @@ | |||
| h1, p, * { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice lil bit of css! wish I'd had the chance to implement ✨
|
|
||
| formatArticles(article) { | ||
| return { | ||
| title: article.webTitle, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v readable/clean code, variable names are easy to follow
|
|
||
| /// | ||
|
|
||
| describe('NewsView', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could add further tests here!
My version of this news aggregator currently retrieves an array of article objects for the UK edition of the Guardian, and renders the headlines for ten most recent results. I have built, but not tested, the logic for a topic search.
I ran into some trouble with testing the mock API call so my test coverage is minimal, and presently I have a bug related to importing the Guardian JS client (per their instructions here: https://github.com/PorterK/GuardianJSClient); two of the test suites won't run due to [SyntaxError: Cannot use import statement outside a module], but this does not stop the program working to its current spec on the front end.
I've done some preliminary CSS design and left relevant comments where I would attempt to improve functionality with more time, and how.