Skip to content

Conversation

@Perspicacity11
Copy link

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.

Copy link

@mirandaweston mirandaweston left a 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, * {

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,

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', () => {

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants