{"action":"created","comment":{"url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/comments/167669762","pull_request_review_id":95921993,"id":167669762,"diff_hunk":"@@ -0,0 +1,61 @@\n+import React from 'react';\n+import { shallow } from 'enzyme';\n+import View from './../../../../client/src/components/favorites/View'; //eslint-disable-line\n+\n+import mockData from '../../../__mocks__/mockData';\n+\n+let props;\n+let mountedComponent;\n+\n+/**\n+ * @description Initialise the component\n+ *\n+ * @returns {object} ManageRecipe - Mounted component\n+ */\n+const getComponent = () => {\n+  if (!mountedComponent) {\n+    mountedComponent = shallow(","path":"client/__tests__/components/favorites/view.test.js","position":17,"original_position":17,"commit_id":"3f2158ebe4120b8560ea77180b1798ae3bc7915f","original_commit_id":"3f2158ebe4120b8560ea77180b1798ae3bc7915f","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Unexpected newline after '('   function-paren-newline","created_at":"2018-02-12T20:00:47Z","updated_at":"2018-02-12T20:00:49Z","html_url":"https://github.com/larrystone/BC-26-More-Recipes/pull/92#discussion_r167669762","pull_request_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/92","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/comments/167669762"},"html":{"href":"https://github.com/larrystone/BC-26-More-Recipes/pull/92#discussion_r167669762"},"pull_request":{"href":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/92"}}},"pull_request":{"url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/92","id":168671509,"html_url":"https://github.com/larrystone/BC-26-More-Recipes/pull/92","diff_url":"https://github.com/larrystone/BC-26-More-Recipes/pull/92.diff","patch_url":"https://github.com/larrystone/BC-26-More-Recipes/pull/92.patch","issue_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/issues/92","number":92,"state":"open","locked":false,"title":"#154916271 Automated testing","user":{"login":"larrystone","id":8871565,"avatar_url":"https://avatars3.githubusercontent.com/u/8871565?v=4","gravatar_id":"","url":"https://api.github.com/users/larrystone","html_url":"https://github.com/larrystone","followers_url":"https://api.github.com/users/larrystone/followers","following_url":"https://api.github.com/users/larrystone/following{/other_user}","gists_url":"https://api.github.com/users/larrystone/gists{/gist_id}","starred_url":"https://api.github.com/users/larrystone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrystone/subscriptions","organizations_url":"https://api.github.com/users/larrystone/orgs","repos_url":"https://api.github.com/users/larrystone/repos","events_url":"https://api.github.com/users/larrystone/events{/privacy}","received_events_url":"https://api.github.com/users/larrystone/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nWrite test case for all features of the app not yet covered\r\n#### Description of Task to be completed?\r\n- write tests for database models\r\n- remove redundant test suites/cases\r\n- refactor validation in models for better testing\r\n- write tests for client side codebase\r\n- refactor client side code for tests\r\n- setup and write end to end tests\r\n- fix minor bugs in codebase\r\n#### How should this be manually tested?\r\nRun the following commands:\r\n- `npm install` and setup database\r\n- `npm run test:server` - for backend testing\r\n- `npm run test:client` - for client testing\r\n- `npm run test:coverage` - for client and server side test \r\n(with coverage)\r\n- `npm run e2e:setup`, start the server and `npm run e2e:test` - for end to end testing\r\n#### Any background context you want to provide?\r\nNone\r\n#### What are the relevant pivotal tracker stories?\r\n[#154916271](https://www.pivotaltracker.com/story/show/154916271)\r\n#### Screenshots (if appropriate)\r\n<img width=\"1680\" alt=\"screen shot 2018-02-12 at 8 40 46 pm\" src=\"https://user-images.githubusercontent.com/8871565/36116295-02ec921c-1036-11e8-8578-bd3c8711b855.png\">\r\n<img width=\"1680\" alt=\"screen shot 2018-02-12 at 8 44 14 pm\" src=\"https://user-images.githubusercontent.com/8871565/36116299-06be731a-1036-11e8-9034-23fad8185551.png\">\r\n\r\n","created_at":"2018-02-12T19:48:42Z","updated_at":"2018-02-12T20:00:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"52e04fd1ac0a8c5559359502759f8c8d327a1949","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/92/commits","review_comments_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/92/comments","review_comment_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/issues/92/comments","statuses_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/statuses/3f2158ebe4120b8560ea77180b1798ae3bc7915f","head":{"label":"larrystone:chore-automated-testing-154916271","ref":"chore-automated-testing-154916271","sha":"3f2158ebe4120b8560ea77180b1798ae3bc7915f","user":{"login":"larrystone","id":8871565,"avatar_url":"https://avatars3.githubusercontent.com/u/8871565?v=4","gravatar_id":"","url":"https://api.github.com/users/larrystone","html_url":"https://github.com/larrystone","followers_url":"https://api.github.com/users/larrystone/followers","following_url":"https://api.github.com/users/larrystone/following{/other_user}","gists_url":"https://api.github.com/users/larrystone/gists{/gist_id}","starred_url":"https://api.github.com/users/larrystone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrystone/subscriptions","organizations_url":"https://api.github.com/users/larrystone/orgs","repos_url":"https://api.github.com/users/larrystone/repos","events_url":"https://api.github.com/users/larrystone/events{/privacy}","received_events_url":"https://api.github.com/users/larrystone/received_events","type":"User","site_admin":false},"repo":{"id":101205695,"name":"BC-26-More-Recipes","full_name":"larrystone/BC-26-More-Recipes","owner":{"login":"larrystone","id":8871565,"avatar_url":"https://avatars3.githubusercontent.com/u/8871565?v=4","gravatar_id":"","url":"https://api.github.com/users/larrystone","html_url":"https://github.com/larrystone","followers_url":"https://api.github.com/users/larrystone/followers","following_url":"https://api.github.com/users/larrystone/following{/other_user}","gists_url":"https://api.github.com/users/larrystone/gists{/gist_id}","starred_url":"https://api.github.com/users/larrystone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrystone/subscriptions","organizations_url":"https://api.github.com/users/larrystone/orgs","repos_url":"https://api.github.com/users/larrystone/repos","events_url":"https://api.github.com/users/larrystone/events{/privacy}","received_events_url":"https://api.github.com/users/larrystone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/larrystone/BC-26-More-Recipes","description":"Andela BootCamp Cycle 26 Project","fork":false,"url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes","forks_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/forks","keys_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/teams","hooks_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/events","assignees_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/tags","blobs_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/languages","stargazers_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/subscription","commits_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/merges","archive_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/downloads","issues_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/deployments","created_at":"2017-08-23T17:09:06Z","updated_at":"2017-11-14T11:40:10Z","pushed_at":"2018-02-12T19:59:42Z","git_url":"git://github.com/larrystone/BC-26-More-Recipes.git","ssh_url":"git@github.com:larrystone/BC-26-More-Recipes.git","clone_url":"https://github.com/larrystone/BC-26-More-Recipes.git","svn_url":"https://github.com/larrystone/BC-26-More-Recipes","homepage":null,"size":7439,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":2,"default_branch":"develop"}},"base":{"label":"larrystone:develop","ref":"develop","sha":"4273630ad0e04802e973f96c1d3ff39ac9ad942e","user":{"login":"larrystone","id":8871565,"avatar_url":"https://avatars3.githubusercontent.com/u/8871565?v=4","gravatar_id":"","url":"https://api.github.com/users/larrystone","html_url":"https://github.com/larrystone","followers_url":"https://api.github.com/users/larrystone/followers","following_url":"https://api.github.com/users/larrystone/following{/other_user}","gists_url":"https://api.github.com/users/larrystone/gists{/gist_id}","starred_url":"https://api.github.com/users/larrystone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrystone/subscriptions","organizations_url":"https://api.github.com/users/larrystone/orgs","repos_url":"https://api.github.com/users/larrystone/repos","events_url":"https://api.github.com/users/larrystone/events{/privacy}","received_events_url":"https://api.github.com/users/larrystone/received_events","type":"User","site_admin":false},"repo":{"id":101205695,"name":"BC-26-More-Recipes","full_name":"larrystone/BC-26-More-Recipes","owner":{"login":"larrystone","id":8871565,"avatar_url":"https://avatars3.githubusercontent.com/u/8871565?v=4","gravatar_id":"","url":"https://api.github.com/users/larrystone","html_url":"https://github.com/larrystone","followers_url":"https://api.github.com/users/larrystone/followers","following_url":"https://api.github.com/users/larrystone/following{/other_user}","gists_url":"https://api.github.com/users/larrystone/gists{/gist_id}","starred_url":"https://api.github.com/users/larrystone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larrystone/subscriptions","organizations_url":"https://api.github.com/users/larrystone/orgs","repos_url":"https://api.github.com/users/larrystone/repos","events_url":"https://api.github.com/users/larrystone/events{/privacy}","received_events_url":"https://api.github.com/users/larrystone/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/larrystone/BC-26-More-Recipes","description":"Andela BootCamp Cycle 26 Project","fork":false,"url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes","forks_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/forks","keys_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/teams","hooks_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/events","assignees_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/tags","blobs_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/languages","stargazers_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/subscription","commits_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/merges","archive_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/downloads","issues_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/deployments","created_at":"2017-08-23T17:09:06Z","updated_at":"2017-11-14T11:40:10Z","pushed_at":"2018-02-12T19:59:42Z","git_url":"git://github.com/larrystone/BC-26-More-Recipes.git","ssh_url":"git@github.com:larrystone/BC-26-More-Recipes.git","clone_url":"https://github.com/larrystone/BC-26-More-Recipes.git","svn_url":"https://github.com/larrystone/BC-26-More-Recipes","homepage":null,"size":7439,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":1,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/92"},"html":{"href":"https://github.com/larrystone/BC-26-More-Recipes/pull/92"},"issue":{"href":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/issues/92"},"comments":{"href":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/larrystone/BC-26-More-Recipes/statuses/3f2158ebe4120b8560ea77180b1798ae3bc7915f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}