Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
brh55 committed Dec 21, 2017
1 parent 89c917f commit ce8ca34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const formatArticle = article => {
// Remove the prefix Google URL
const thumbnailUrl = $('img', 'tr').attr('src');
// TO-DO: Address the relevant section
const publisher = $('font[color=#6f6f6f]').text()
const publisher = $('font[color=#6f6f6f]').text();
const cleanDescription = deriveDescription(description, publisher);

// Add publisher, re-formatted description, and url
Expand Down
3 changes: 1 addition & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ test('Searches the news and returns formatted articles', async t => {
category: 'food',
pubDate: 'Tue, 19 Dec 2017 14:02:06 GMT',
publisher: 'Christian Science Monitor',
description :'\'Feast for the Eyes\' is a delightful history of food in photography'
description: '\'Feast for the Eyes\' is a delightful history of food in photography'
};


const articles = await googleNews.search('food');

t.deepEqual(articles[0], expectedArticle1);
Expand Down

0 comments on commit ce8ca34

Please sign in to comment.