{"action":"created","comment":{"url":"https://api.github.com/repos/Annmary12/WeConnect/pulls/comments/203994751","pull_request_review_id":138996286,"id":203994751,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzk5NDc1MQ==","diff_hunk":"@@ -0,0 +1,44 @@\n+import reviewReducer from '../../src/reducers/review';\n+import {\n+  REVIEW_SUCCESSFUL,\n+  REVIEW_FAILED\n+} from '../../src/actions/types';\n+\n+describe('review reducer', () => {\n+  const initialState = {\n+    message: '',\n+    error: '',\n+    isCreated: false,\n+    hasError: false,\n+  };\n+  it('should handle REVIEW_SUCCESSFUL', () => {\n+    const payload = 'Successfully reviewed';\n+    const isCreated = true;\n+    const action = {\n+      type: REVIEW_SUCCESSFUL,\n+      payload\n+    };\n+\n+    const newState = reviewReducer(initialState, action);\n+    expect(newState.message).toEqual(payload);\n+    expect(newState.isCreated).toEqual(isCreated);\n+  });\n+\n+  it('should handle REVIEW_FAILED', () => {\n+    const error = 'Not Successfully reviewed';\n+    const hasError = true;\n+    const action = {\n+      type: REVIEW_FAILED,\n+      error\n+    };\n+\n+    const newState = reviewReducer(initialState, action);\n+    expect(newState.error).toEqual(error);","path":"client/__test__/reducers/review.test.js","position":36,"original_position":36,"commit_id":"c6804d28cf4242b4c330a99c83d9f2f584d6105d","original_commit_id":"c6804d28cf4242b4c330a99c83d9f2f584d6105d","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","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":"'expect' is not defined                                      no-undef","created_at":"2018-07-20T09:56:49Z","updated_at":"2018-07-20T09:56:50Z","html_url":"https://github.com/Annmary12/WeConnect/pull/23#discussion_r203994751","pull_request_url":"https://api.github.com/repos/Annmary12/WeConnect/pulls/23","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Annmary12/WeConnect/pulls/comments/203994751"},"html":{"href":"https://github.com/Annmary12/WeConnect/pull/23#discussion_r203994751"},"pull_request":{"href":"https://api.github.com/repos/Annmary12/WeConnect/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/Annmary12/WeConnect/pulls/23","id":202801270,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyODAxMjcw","html_url":"https://github.com/Annmary12/WeConnect/pull/23","diff_url":"https://github.com/Annmary12/WeConnect/pull/23.diff","patch_url":"https://github.com/Annmary12/WeConnect/pull/23.patch","issue_url":"https://api.github.com/repos/Annmary12/WeConnect/issues/23","number":23,"state":"closed","locked":false,"title":" #159074946 implement reducer test","user":{"login":"Annmary12","id":14803275,"node_id":"MDQ6VXNlcjE0ODAzMjc1","avatar_url":"https://avatars3.githubusercontent.com/u/14803275?v=4","gravatar_id":"","url":"https://api.github.com/users/Annmary12","html_url":"https://github.com/Annmary12","followers_url":"https://api.github.com/users/Annmary12/followers","following_url":"https://api.github.com/users/Annmary12/following{/other_user}","gists_url":"https://api.github.com/users/Annmary12/gists{/gist_id}","starred_url":"https://api.github.com/users/Annmary12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Annmary12/subscriptions","organizations_url":"https://api.github.com/users/Annmary12/orgs","repos_url":"https://api.github.com/users/Annmary12/repos","events_url":"https://api.github.com/users/Annmary12/events{/privacy}","received_events_url":"https://api.github.com/users/Annmary12/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nimplement reducer test\r\n\r\n#### Description of Task to be completed?\r\n  - Install jest\r\n  - Add test script in package.json file\r\n  - test all reducers\r\n\r\n#### How should this be manually tested?\r\n`clone` the project\r\ncd into the project\r\nrun `npm install`\r\nrun `npm run test-client`\r\n\r\n#### Any background context you want to provide?\r\nN/A\r\n\r\n#### What are the relevant pivotal tracker stories?\r\nStory Type: chore\r\nStory Id:  #159074946\r\nStory: implement reducer test\r\n\r\n#### Screenshots (if appropriate)\r\n<img width=\"672\" alt=\"screen shot 2018-07-20 at 10 52 47 am\" src=\"https://user-images.githubusercontent.com/14803275/42996371-42f1cb92-8c0b-11e8-9e6f-9b34a2a2d46e.png\">\r\n\r\n<img width=\"892\" alt=\"screen shot 2018-07-20 at 10 53 50 am\" src=\"https://user-images.githubusercontent.com/14803275/42996413-5f5b3c64-8c0b-11e8-9f5c-a023603db049.png\">\r\n\r\n \r\n","created_at":"2018-07-20T09:56:17Z","updated_at":"2018-07-20T09:56:50Z","closed_at":"2018-07-20T09:56:41Z","merged_at":"2018-07-20T09:56:41Z","merge_commit_sha":"58071dfa51115cb82388d977cdf2abf9f45bb949","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Annmary12/WeConnect/pulls/23/commits","review_comments_url":"https://api.github.com/repos/Annmary12/WeConnect/pulls/23/comments","review_comment_url":"https://api.github.com/repos/Annmary12/WeConnect/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Annmary12/WeConnect/issues/23/comments","statuses_url":"https://api.github.com/repos/Annmary12/WeConnect/statuses/c6804d28cf4242b4c330a99c83d9f2f584d6105d","head":{"label":"Annmary12:ch-reducer-test-159074946","ref":"ch-reducer-test-159074946","sha":"c6804d28cf4242b4c330a99c83d9f2f584d6105d","user":{"login":"Annmary12","id":14803275,"node_id":"MDQ6VXNlcjE0ODAzMjc1","avatar_url":"https://avatars3.githubusercontent.com/u/14803275?v=4","gravatar_id":"","url":"https://api.github.com/users/Annmary12","html_url":"https://github.com/Annmary12","followers_url":"https://api.github.com/users/Annmary12/followers","following_url":"https://api.github.com/users/Annmary12/following{/other_user}","gists_url":"https://api.github.com/users/Annmary12/gists{/gist_id}","starred_url":"https://api.github.com/users/Annmary12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Annmary12/subscriptions","organizations_url":"https://api.github.com/users/Annmary12/orgs","repos_url":"https://api.github.com/users/Annmary12/repos","events_url":"https://api.github.com/users/Annmary12/events{/privacy}","received_events_url":"https://api.github.com/users/Annmary12/received_events","type":"User","site_admin":false},"repo":{"id":122993154,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI5OTMxNTQ=","name":"WeConnect","full_name":"Annmary12/WeConnect","owner":{"login":"Annmary12","id":14803275,"node_id":"MDQ6VXNlcjE0ODAzMjc1","avatar_url":"https://avatars3.githubusercontent.com/u/14803275?v=4","gravatar_id":"","url":"https://api.github.com/users/Annmary12","html_url":"https://github.com/Annmary12","followers_url":"https://api.github.com/users/Annmary12/followers","following_url":"https://api.github.com/users/Annmary12/following{/other_user}","gists_url":"https://api.github.com/users/Annmary12/gists{/gist_id}","starred_url":"https://api.github.com/users/Annmary12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Annmary12/subscriptions","organizations_url":"https://api.github.com/users/Annmary12/orgs","repos_url":"https://api.github.com/users/Annmary12/repos","events_url":"https://api.github.com/users/Annmary12/events{/privacy}","received_events_url":"https://api.github.com/users/Annmary12/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Annmary12/WeConnect","description":"Weconnect is a means to bring businesses and individuals together","fork":false,"url":"https://api.github.com/repos/Annmary12/WeConnect","forks_url":"https://api.github.com/repos/Annmary12/WeConnect/forks","keys_url":"https://api.github.com/repos/Annmary12/WeConnect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Annmary12/WeConnect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Annmary12/WeConnect/teams","hooks_url":"https://api.github.com/repos/Annmary12/WeConnect/hooks","issue_events_url":"https://api.github.com/repos/Annmary12/WeConnect/issues/events{/number}","events_url":"https://api.github.com/repos/Annmary12/WeConnect/events","assignees_url":"https://api.github.com/repos/Annmary12/WeConnect/assignees{/user}","branches_url":"https://api.github.com/repos/Annmary12/WeConnect/branches{/branch}","tags_url":"https://api.github.com/repos/Annmary12/WeConnect/tags","blobs_url":"https://api.github.com/repos/Annmary12/WeConnect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Annmary12/WeConnect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Annmary12/WeConnect/git/refs{/sha}","trees_url":"https://api.github.com/repos/Annmary12/WeConnect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Annmary12/WeConnect/statuses/{sha}","languages_url":"https://api.github.com/repos/Annmary12/WeConnect/languages","stargazers_url":"https://api.github.com/repos/Annmary12/WeConnect/stargazers","contributors_url":"https://api.github.com/repos/Annmary12/WeConnect/contributors","subscribers_url":"https://api.github.com/repos/Annmary12/WeConnect/subscribers","subscription_url":"https://api.github.com/repos/Annmary12/WeConnect/subscription","commits_url":"https://api.github.com/repos/Annmary12/WeConnect/commits{/sha}","git_commits_url":"https://api.github.com/repos/Annmary12/WeConnect/git/commits{/sha}","comments_url":"https://api.github.com/repos/Annmary12/WeConnect/comments{/number}","issue_comment_url":"https://api.github.com/repos/Annmary12/WeConnect/issues/comments{/number}","contents_url":"https://api.github.com/repos/Annmary12/WeConnect/contents/{+path}","compare_url":"https://api.github.com/repos/Annmary12/WeConnect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Annmary12/WeConnect/merges","archive_url":"https://api.github.com/repos/Annmary12/WeConnect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Annmary12/WeConnect/downloads","issues_url":"https://api.github.com/repos/Annmary12/WeConnect/issues{/number}","pulls_url":"https://api.github.com/repos/Annmary12/WeConnect/pulls{/number}","milestones_url":"https://api.github.com/repos/Annmary12/WeConnect/milestones{/number}","notifications_url":"https://api.github.com/repos/Annmary12/WeConnect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Annmary12/WeConnect/labels{/name}","releases_url":"https://api.github.com/repos/Annmary12/WeConnect/releases{/id}","deployments_url":"https://api.github.com/repos/Annmary12/WeConnect/deployments","created_at":"2018-02-26T15:58:05Z","updated_at":"2018-07-20T09:56:44Z","pushed_at":"2018-07-20T09:56:41Z","git_url":"git://github.com/Annmary12/WeConnect.git","ssh_url":"git@github.com:Annmary12/WeConnect.git","clone_url":"https://github.com/Annmary12/WeConnect.git","svn_url":"https://github.com/Annmary12/WeConnect","homepage":"","size":2887,"stargazers_count":0,"watchers_count":0,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"Annmary12:develop","ref":"develop","sha":"59d6f577bb23c2075a051fc0559c903b1a9d6fd9","user":{"login":"Annmary12","id":14803275,"node_id":"MDQ6VXNlcjE0ODAzMjc1","avatar_url":"https://avatars3.githubusercontent.com/u/14803275?v=4","gravatar_id":"","url":"https://api.github.com/users/Annmary12","html_url":"https://github.com/Annmary12","followers_url":"https://api.github.com/users/Annmary12/followers","following_url":"https://api.github.com/users/Annmary12/following{/other_user}","gists_url":"https://api.github.com/users/Annmary12/gists{/gist_id}","starred_url":"https://api.github.com/users/Annmary12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Annmary12/subscriptions","organizations_url":"https://api.github.com/users/Annmary12/orgs","repos_url":"https://api.github.com/users/Annmary12/repos","events_url":"https://api.github.com/users/Annmary12/events{/privacy}","received_events_url":"https://api.github.com/users/Annmary12/received_events","type":"User","site_admin":false},"repo":{"id":122993154,"node_id":"MDEwOlJlcG9zaXRvcnkxMjI5OTMxNTQ=","name":"WeConnect","full_name":"Annmary12/WeConnect","owner":{"login":"Annmary12","id":14803275,"node_id":"MDQ6VXNlcjE0ODAzMjc1","avatar_url":"https://avatars3.githubusercontent.com/u/14803275?v=4","gravatar_id":"","url":"https://api.github.com/users/Annmary12","html_url":"https://github.com/Annmary12","followers_url":"https://api.github.com/users/Annmary12/followers","following_url":"https://api.github.com/users/Annmary12/following{/other_user}","gists_url":"https://api.github.com/users/Annmary12/gists{/gist_id}","starred_url":"https://api.github.com/users/Annmary12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Annmary12/subscriptions","organizations_url":"https://api.github.com/users/Annmary12/orgs","repos_url":"https://api.github.com/users/Annmary12/repos","events_url":"https://api.github.com/users/Annmary12/events{/privacy}","received_events_url":"https://api.github.com/users/Annmary12/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Annmary12/WeConnect","description":"Weconnect is a means to bring businesses and individuals together","fork":false,"url":"https://api.github.com/repos/Annmary12/WeConnect","forks_url":"https://api.github.com/repos/Annmary12/WeConnect/forks","keys_url":"https://api.github.com/repos/Annmary12/WeConnect/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Annmary12/WeConnect/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Annmary12/WeConnect/teams","hooks_url":"https://api.github.com/repos/Annmary12/WeConnect/hooks","issue_events_url":"https://api.github.com/repos/Annmary12/WeConnect/issues/events{/number}","events_url":"https://api.github.com/repos/Annmary12/WeConnect/events","assignees_url":"https://api.github.com/repos/Annmary12/WeConnect/assignees{/user}","branches_url":"https://api.github.com/repos/Annmary12/WeConnect/branches{/branch}","tags_url":"https://api.github.com/repos/Annmary12/WeConnect/tags","blobs_url":"https://api.github.com/repos/Annmary12/WeConnect/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Annmary12/WeConnect/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Annmary12/WeConnect/git/refs{/sha}","trees_url":"https://api.github.com/repos/Annmary12/WeConnect/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Annmary12/WeConnect/statuses/{sha}","languages_url":"https://api.github.com/repos/Annmary12/WeConnect/languages","stargazers_url":"https://api.github.com/repos/Annmary12/WeConnect/stargazers","contributors_url":"https://api.github.com/repos/Annmary12/WeConnect/contributors","subscribers_url":"https://api.github.com/repos/Annmary12/WeConnect/subscribers","subscription_url":"https://api.github.com/repos/Annmary12/WeConnect/subscription","commits_url":"https://api.github.com/repos/Annmary12/WeConnect/commits{/sha}","git_commits_url":"https://api.github.com/repos/Annmary12/WeConnect/git/commits{/sha}","comments_url":"https://api.github.com/repos/Annmary12/WeConnect/comments{/number}","issue_comment_url":"https://api.github.com/repos/Annmary12/WeConnect/issues/comments{/number}","contents_url":"https://api.github.com/repos/Annmary12/WeConnect/contents/{+path}","compare_url":"https://api.github.com/repos/Annmary12/WeConnect/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Annmary12/WeConnect/merges","archive_url":"https://api.github.com/repos/Annmary12/WeConnect/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Annmary12/WeConnect/downloads","issues_url":"https://api.github.com/repos/Annmary12/WeConnect/issues{/number}","pulls_url":"https://api.github.com/repos/Annmary12/WeConnect/pulls{/number}","milestones_url":"https://api.github.com/repos/Annmary12/WeConnect/milestones{/number}","notifications_url":"https://api.github.com/repos/Annmary12/WeConnect/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Annmary12/WeConnect/labels{/name}","releases_url":"https://api.github.com/repos/Annmary12/WeConnect/releases{/id}","deployments_url":"https://api.github.com/repos/Annmary12/WeConnect/deployments","created_at":"2018-02-26T15:58:05Z","updated_at":"2018-07-20T09:56:44Z","pushed_at":"2018-07-20T09:56:41Z","git_url":"git://github.com/Annmary12/WeConnect.git","ssh_url":"git@github.com:Annmary12/WeConnect.git","clone_url":"https://github.com/Annmary12/WeConnect.git","svn_url":"https://github.com/Annmary12/WeConnect","homepage":"","size":2887,"stargazers_count":0,"watchers_count":0,"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":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Annmary12/WeConnect/pulls/23"},"html":{"href":"https://github.com/Annmary12/WeConnect/pull/23"},"issue":{"href":"https://api.github.com/repos/Annmary12/WeConnect/issues/23"},"comments":{"href":"https://api.github.com/repos/Annmary12/WeConnect/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/Annmary12/WeConnect/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/Annmary12/WeConnect/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Annmary12/WeConnect/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/Annmary12/WeConnect/statuses/c6804d28cf4242b4c330a99c83d9f2f584d6105d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}